lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Solr round ratings to nearest integer value
Date Fri, 02 Aug 2013 11:49:41 GMT
Then you need to do two things:
1> index the values as integers, i.e. do the rounding at input time.
    You could use a custom update element to do this or (simpler)
    just do it in your indexing step. Using the round methods in your
    SQL statement has already been mentioned.
2> round the values at query time in your query. Again, the app or
    a custom query component would work here either way.

Overall I'd do both these operations in the app (DIH for indexing
and your client-facing app at query time).

Best
Erick


On Fri, Aug 2, 2013 at 2:24 AM, Thyagaraj <thyagaraj03@gmail.com> wrote:

> After discussion I came to know that I want the second point...
>
> 2. Query to match only rounded integer values?
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-round-ratings-to-nearest-integer-value-tp4081833p4082138.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message