No that sorting is based on multiple fields. Basically i want to sort them as the group by statement like in the SQL based on few fields and many loops to go through. The problem is that i have say 1,000,000 solr docs after injecting my few solr docs and then i want to do group by these solr docs by some fields and then take 20 records for paging. So i need some shortcut for that. -- Kashif Khan. http://www.kashifkhan.in
On Wed, Feb 8, 2012 at 11:07 PM, iorixxx [via Lucene] < ml-node+s472066n3726788...@n3.nabble.com> wrote: > > I want to sort a SolrDocumentList after it has been queried > > and obtained > > from the QueryResponse.getResults(). The reason is i have a > > SolrDocumentList > > obtained after querying using QueryResponse.getResults() and > > i have added > > few docs to it. Now i want to sort this SolrDocumentList > > based on the same > > fields i did the querying before i modified this > > SolrDocumentList. > > QueryResponse.getResults() will return rows many documents. Cant you sort > them (plus your injected documents) with your own? > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://lucene.472066.n3.nabble.com/Sorting-solrdocumentlist-object-after-querying-tp3726303p3726788.html > To unsubscribe from Sorting solrdocumentlist object after querying, click > here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3726303&code=dXBsaW5rMjAxMEBnbWFpbC5jb218MzcyNjMwM3wtMTgzODU3NDI3OQ==> > . > NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://lucene.472066.n3.nabble.com/Sorting-solrdocumentlist-object-after-querying-tp3726303p3728549.html Sent from the Solr - User mailing list archive at Nabble.com.