lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From payalsharma <>
Subject To associate sort criteria with the search query having fields of type String( required to be treated as numeric)
Date Thu, 13 Nov 2008 14:40:10 GMT


I m trying to apply sort on the search query which includes fields of type
string, but i want some fields to be treated as of type float/integer by
solr since the field basicly contains numeric value but have been defined as
of type string in solrCofig.XML

Currently sorting on these fileds occur on Lexicographical pattern whereby
3888 is considered to be smaller than 450 thus wrong results are getting

Is there some way / syntax which can be given in the search query so that
the string type field can be treated as numeric and the correct results can
be displayed.

Thanks in advance.

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message