Hi, I *think* you can't do this without reindexing that field as a proper type.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ________________________________ From: payalsharma <[EMAIL PROTECTED]> To: solr-user@lucene.apache.org Sent: Thursday, November 13, 2008 9:40:10 AM Subject: To associate sort criteria with the search query having fields of type String( required to be treated as numeric) 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.