RE: Natural string sorting

2010-10-29 Thread Bob Sandiford
irsiDynix P: 800.288.8020 X6943 | bob.sandif...@sirsidynix.com www.sirsidynix.com  > -Original Message- > From: Savvas-Andreas Moysidis > [mailto:savvas.andreas.moysi...@googlemail.com] > Sent: Friday, October 29, 2010 4:33 AM > To: solr-user@lucene.apache.org > Subject:

Re: Natural string sorting

2010-10-29 Thread Toke Eskildsen
On Fri, 2010-10-29 at 10:18 +0200, RL wrote: > Executing a query and sorting by this field leads to unnatural sorting of : > string1 > string10 > string2 That's very much natural. Numbers are not treated any different from words made up of letters. Your have to use alignment if you want to use nat

Re: Natural string sorting

2010-10-29 Thread Savvas-Andreas Moysidis
I think string10 is before string2 in lexicographic order? On 29 October 2010 09:18, RL wrote: > > Just a quick question about natural sorting of strings. > > I've a simple dynamic field in my schema: > > omitNorms="true"/> > omitNorms="true"/> > > There are 3 indexed strings for example > str