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
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"?
Regards,
suganuma
2014-07-15 16:24 GMT+09:00 madhav bahuguna :
> Iam trying to sort my records but the result i get is not correct
> My url qu
That's always what happens (not just in Solr) when you store numbers
as text. You could store them as text-sortable numbers with leading
zeros (e.g. 04 vs. 45), but then what happens when you hit a 100?
Alternatively, if that field has only numbers, index it as a numeric
type. Make sure to use one
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 re