You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2013/11/20 16:57:35 UTC

[jira] [Created] (LUCENE-5345) range facets don't work with float/double fields

Michael McCandless created LUCENE-5345:
------------------------------------------

             Summary: range facets don't work with float/double fields
                 Key: LUCENE-5345
                 URL: https://issues.apache.org/jira/browse/LUCENE-5345
             Project: Lucene - Core
          Issue Type: Bug
          Components: modules/facet
            Reporter: Michael McCandless
             Fix For: 5.0, 4.7


With LUCENE-5297 we generalized range faceting to accept a ValueSource.

But, when I tried to use this to facet by distance (< 1 km, < 2 km, etc.), it's not working ... the problem is that the RangeAccumulator always uses .longVal and assumes this was a double encoded as a long (via DoubleField).



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org