[ 
https://issues.apache.org/jira/browse/LUCENE-5297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shai Erera updated LUCENE-5297:
-------------------------------

    Attachment: LUCENE-5297.patch

Patch extends RangeFacetRequest to take also a ValueSource and represents the 
NDV case as LongFieldSource. Also modified RangeAccumulator to use 
FunctionValues instead of NDV. All TestRangeAccumulator tests pass.

I have nocommits around jdocs, will handle them later. More important is 
whether this approach is OK, or is it better to separate the accumulator to an 
NDV one and ValueSource one (I think not, but perhaps others think differently).

> Allow rang faceting on any ValueSource
> --------------------------------------
>
>                 Key: LUCENE-5297
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5297
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: modules/facet
>            Reporter: Shai Erera
>         Attachments: LUCENE-5297.patch
>
>
> Today RangeAccumulator assumes the ranges should be read from a 
> NumericDocValues field. Would be good if we can modify it, or introduce a new 
> ValueSourceAccumulator which allows you to range-facet on any ValueSource, 
> e.g. one that is generated from an expression.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to