I think string10 is before string2 in lexicographic order? On 29 October 2010 09:18, RL <rl.subscri...@gmail.com> wrote:
> > Just a quick question about natural sorting of strings. > > I've a simple dynamic field in my schema: > > <fieldType name="string" class="solr.StrField" sortMissingLast="true" > omitNorms="true"/> > <field name="nameSort_en" type="string" indexed="true" stored="false" > omitNorms="true"/> > > There are 3 indexed strings for example > string1,string2,string10 > > Executing a query and sorting by this field leads to unnatural sorting of : > string1 > string10 > string2 > > (Some time ago i used Lucene and i was pretty sure that Lucene used a > natural sort, thus i expected the same from solr) > Is there a way to sort in a natural order? Config option? Plugin? Expected > output would be: > string1 > string2 > string10 > > > Thanks in advance. > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Natural-string-sorting-tp1791227p1791227.html > Sent from the Solr - User mailing list archive at Nabble.com. >