lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <erik.hatc...@gmail.com>
Subject Re: Query regarding solr custom sort order
Date Wed, 04 Jan 2012 15:02:00 GMT
You're using a string field type, I imagine.  Use a numeric field type instead.

wc-search.xml?   That's not a solr config file; must be something specific to your app.

	Erik

On Jan 4, 2012, at 08:40 , umaswayam wrote:

> Hi,
> 
> We want to sort our records based on some sequence which is like
> 1 2 3 4 5 6 7 8 9  10 11 12 13 14.....
> 
> I am using Websphere commerce to retrieve data using solr. When we are
> customizing the sort order/ option in wc-search.xml file then we are getting
> the sort order as
> 1 10 11 12 13 14 2 3 4 5 6 7 8 9 like this.
> 
> As I guess the sort order is checking with first digit of all sequences &
> based on that if they are same moving on to compare the next digit & so on,
> which is resulting on wrong sort output.
> 
> Can anyone put some thoughts on this or help me out if I am doing something
> wrong here.
> 
> Thanks in advance
> Uma Shankar
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Query-regarding-solr-custom-sort-order-tp3631854p3631854.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message