Do you want:
1. The indexed value to be rounded?
2. Query to match only rounded integer values?
3. Return value to be rounded?
Which of those three is your use case. All three are possible.
-- Jack Krupansky
-----Original Message-----
From: Thyagaraj
Sent: Thursday, August 01, 2013 2:37 AM
To: solr-user@lucene.apache.org
Subject: Solr round ratings to nearest integer value
I'm using solr 4.0 with DIH jdbc connector and I use Solr Admin web
interface
for testing. I have a field called *ratings* which varies like 0, 0.3, 0.5,
0.75, 1, 1.5, 1.6... and so on as per user input.
I found the link
http://lucene.472066.n3.nabble.com/How-to-round-solr-score-td495198.html
<http://lucene.472066.n3.nabble.com/How-to-round-solr-score-td495198.html>
which is beyond of my understanding and I unable to make use of in my case.
I just want to round this rating values to nearest integer value through
solr like,
0.3 & 0.5 to 0
0.75 & 1.5 to 1
1.6 to 2
Anybody help me guiding please?
Thank you!
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solr-round-ratings-to-nearest-integer-value-tp4081833.html
Sent from the Solr - User mailing list archive at Nabble.com.