Re: Paging and sorting in Solr
thnx -- View this message in context: http://lucene.472066.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000p4057098.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Paging and sorting in Solr
Maybe you have your name field as "text" rather than "string". Don't try sorting "text" fields - make a copy (copyField) to a string field and sort the string field. So, for example, have "name" as "text" for keyword search, and "name_s" as "string" for sorting (and faceting.) -- Jack Krupansky -Original Message- From: hassancrowdc Sent: Thursday, April 18, 2013 11:35 AM To: solr-user@lucene.apache.org Subject: Re: Paging and sorting in Solr Hi, I double checked. It is the field. if i sort through manufacturer field it sorts but if i sort through name it does not sort. both the field has everything same. Is there any difference in sorting alphabetically or size of the word? -- View this message in context: http://lucene.472066.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000p4057013.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Paging and sorting in Solr
Hi, I double checked. It is the field. if i sort through manufacturer field it sorts but if i sort through name it does not sort. both the field has everything same. Is there any difference in sorting alphabetically or size of the word? -- View this message in context: http://lucene.472066.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000p4057013.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Paging and sorting in Solr
I am sure it does the sorting first (since I always done that). On 04/18/2013 02:49 PM, hassancrowdc wrote: I have done paging using solr rows and start query attributes. But now it shows me result with that is sorted page wise. I meant if i have the following scenario: rows=25&start=0&sort=manufacturer asc It will give me first 25 matching results and then sort only those. I want it to sort all the results first and then apply rows and start. How can i do that? -- View this message in context: http://lucene.472066.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000.html Sent from the Solr - User mailing list archive at Nabble.com. -- Oussama Jilal
Paging and sorting in Solr
I have done paging using solr rows and start query attributes. But now it shows me result with that is sorted page wise. I meant if i have the following scenario: rows=25&start=0&sort=manufacturer asc It will give me first 25 matching results and then sort only those. I want it to sort all the results first and then apply rows and start. How can i do that? -- View this message in context: http://lucene.472066.n3.nabble.com/Paging-and-sorting-in-Solr-tp4057000.html Sent from the Solr - User mailing list archive at Nabble.com.