lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From payalsharma <payalshar...@yahoo.com>
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

Hi,

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
displayed.

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: http://www.nabble.com/To-associate-sort-criteria-with-the-search--query-having-fields-of-type-String%28-required-to-be-treated-as-numeric%29-tp20481627p20481627.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message