lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5345) range facets don't work with float/double fields
Date Sun, 01 Dec 2013 13:33:35 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-5345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836027#comment-13836027
] 

Michael McCandless commented on LUCENE-5345:
--------------------------------------------

bq. Is it mandatory to have facet/ depend on expressions? Can't we do it under demo/ only,
and use mock ValueSources for testing facet/?

You're right, I just moved it to demo/ and left a "custom doubles values source" test in facet/

> 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
>
>         Attachments: LUCENE-5345.patch
>
>
> 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


Mime
View raw message