Re: Question on sorting

2020-07-22 Thread Saurabh Sharma
Hi, It is because field is string and numbers are getting sorted lexicographically.It has nothing to do with number of digits. Thanks Saurabh On Thu, Jul 23, 2020, 11:24 AM Srinivas Kashyap wrote: > Hello, > > I have schema and field definition as shown below: > > omitNorms="true"/> > > > /

Question on sorting

2020-07-22 Thread Srinivas Kashyap
Hello, I have schema and field definition as shown below: TRACK_ID field contains "NUMERIC VALUE". When I use sort on track_id (TRACK_ID desc) it is not working properly. ->I have below values in Track_ID Doc1: "84806" Doc2: "124561" Ideally, when I use sort command, query result should

Re: Newbie question on sorting

2012-05-02 Thread Jacek
Erick, I'll do that. Thank you very much. Regards, Jacek On Tue, May 1, 2012 at 7:19 AM, Erick Erickson wrote: > The easiest way is to do that in the app. That is, return the top > 10 to the app (by score) then re-order them there. There's nothing > in Solr that I know of that does what you want

Re: Newbie question on sorting

2012-05-01 Thread Erick Erickson
The easiest way is to do that in the app. That is, return the top 10 to the app (by score) then re-order them there. There's nothing in Solr that I know of that does what you want out of the box. Best Erick On Mon, Apr 30, 2012 at 11:10 AM, Jacek wrote: > Hello all, > > I'm facing this simple pr

Newbie question on sorting

2012-04-30 Thread Jacek
Hello all, I'm facing this simple problem, yet impossible to resolve for me (I'm a newbie in Solr). I need to sort the results by score (it is simple, of course), but then what I need is to take top 10 results, and re-order it (only those top 10 results) by a date field. It's not the same as sort=

Question on sorting

2009-04-21 Thread Mathias Herberts
Hi, I have a Solr index with an awful lot of tiny documents in it (hundreds of millions) each having a few fields. I can query the index without problem and retrieve results sorted on score. I am now exploring the possibility of sorting on other fields. The typical number of results from queries