lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Solr round ratings to nearest integer value
Date Thu, 01 Aug 2013 18:04:01 GMT
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
Subject: Solr round ratings to nearest integer value

I'm using solr 4.0 with DIH jdbc connector and I use Solr Admin web 
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
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:
Sent from the Solr - User mailing list archive at 

View raw message