Are you sorting against an untokenized field (either defined using the 'string' 
fieldType or a fieldType that is configured with KeywordTokenizerFactory)?

Solr will let you sort against a tokenized field. Not sure what happens 
internally when you do this, but the results will not be what you expect.

- Andy -

-----Original Message-----
From: vkrishna [mailto:vamsikrishna_t...@yahoo.com] 
Sent: Monday, March 14, 2016 1:14 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr sort preferences number vs space vs character

Shawn, I think you did saw my required result order in previous update(which is 
different from what I asked first )space > number > character, sorry for 
confusion.

Thanks,
Krishna.
--------------------------------------------
On Mon, 3/14/16, Shawn Heisey-2 [via Lucene] 
<ml-node+s472066n4263684...@n3.nabble.com> wrote:

 Subject: Re: Solr sort preferences number vs space vs character
 To: "vkrishna" <vamsikrishna_t...@yahoo.com>
 Date: Monday, March 14, 2016, 9:58 AM
 
 
 
 On 3/14/2016 10:28 AM, vkrishna wrote:
 > I completely forgot to mention that this  kind of sorting is working fine in 
 > 1.4 version now we are  upgrading to 5.4. I know solr made many changes 
 > between,  because it's been years. Do you know when and in which  version 
 > they made changes for sorting.
 
 Absolutely no idea.
 
 I would be *very* surprised to learn that  numbers were sorted after  letters 
in ANY  version of Solr/Lucene.  If I did see that, I think I  would be looking 
to file a bug.
 
 Thanks,
 Shawn
 
 
 
 
 
 _______________________________________________
 If you reply to this email, your message will  be added to the discussion 
below:
 
http://lucene.472066.n3.nabble.com/Solr-sort-preferences-number-vs-space-vs-character-tp4263527p4263684.html
 
 To unsubscribe from Solr sort preferences  number vs space vs character, visit 
http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4263527&code=dmFtc2lrcmlzaG5hX3Rzc3NAeWFob28uY29tfDQyNjM1Mjd8LTE3NjA5MTUyMw==




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-sort-preferences-number-vs-space-vs-character-tp4263527p4263691.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to