In fact its better using TrieIntField instead of IntField. http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201301.mbox/%3ccab_8yd9yp259kk4ciybbprjcpwqp6vd7yvrtjr1eubew_ky...@mail.gmail.com%3E http://stackoverflow.com/questions/13372323/what-is-the-correct-solr-fieldtype-to-use-for-sorting-integer-values
On Tue, Jul 15, 2014 at 1:09 PM, スガヌマヨシカズ <suganoo2...@gmail.com> wrote: > i think type="text_general" make it charactered-sort for numbers. > > How about make it as type="int" or type="long" instead of "text_general"? > > ---- > <field name="business_point" type="text_general" indexed="true" > stored="true" required="false" multiValued="false"/> > ---- > > Regards, > suganuma > > > 2014-07-15 16:24 GMT+09:00 madhav bahuguna <madhav.bahug...@gmail.com>: > > > Iam trying to sort my records but the result i get is not correct > > My url query-- > > > > > http://localhost:8983/solr/select/?&q=*:*&fl=business_point&sort=business_point+desc > > > > Iam trying to sort my records by business_points but the result i get is > in > > like this > > 9 > > 8 > > 7 > > 6 > > 5 > > 45 > > 4 > > 4 > > 10 > > 1 > > > > Whys am i getting my results in the wrong order > > my schema looks like this > > <field name="business_point" type="text_general" indexed="true" > > stored="true" required="false" multiValued="false"/> > > > > -- > > Regards > > Madhav Bahuguna > > > -- Thanks & Regards, Apoorva