Hello,

You can sort by field by adding &sort=fieldname+asc or &sort=fieldname+desc to 
your search request URLs

http://wiki.apache.org/solr/CommonQueryParameters#head-9f40612b42721ed9e1979a4a80d68f4f8524e9b4

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: akinori <akinor...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Friday, June 19, 2009 9:53:19 PM
> Subject: Re: Result orde is different from I expect
> 
> 
> Thank you for your input to such a beginner.
> 
> I did'nt think that I had to do something for sorting when I get search
> result. I originally thought Solr would automatically sort.
> I think the result is the order I indexed. So how could I get so-called
> "dictionally ordered" result? 
> Many thanks!
> 
> 
> 
> Hello,
> 
> If you first indexed "apple" and then you indexed "Apple" and if you are
> lowercasing this text before indexing (i.e. using LowerCaseFilterFactory),
> then if you search for "apple", you should fist get "apple", and then
> "Apple".  If you first indexed "Apple" and then "apple", then a search for
> "apple" will first return "Apple", followed by "apple".  I am assuming you
> are not sorting the results, but maybe you are?
> 
> 
> Otis 
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> 
> 
> ----- Original Message ----
> > From: akinori 
> > To: solr-user@lucene.apache.org
> > Sent: Friday, June 19, 2009 11:23:14 AM
> > Subject: Result orde is different from I expect
> > 
> > 
> > I am straggling with search result order of Solr.
> > I indexed a English-certain language dictionary to Solr.
> > 
> > Then below is the result of query="apple" and I am confused with this. Why
> > doesn't "apple" come first and then Apple ?
> > I'd like to have your suggestion to fix this to more. I am really stressed
> > about this these days.
> > Any input is much appreciated.
> > 
> > Thanks
> > 
> > (example word list)
> > An apple!
> > A as in apple
> > appl.
> > apple
> > Apple
> > apples
> > Appling
> > apples to apples
> > Adam's apple
> > allergic apples
> > alley apple
> > apple allergy
> > apple compote
> > apple divider
> > bad apple 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Result-order-is-different-from-I-expect-tp24113572p24121215.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to