[
https://issues.apache.org/jira/browse/LUCENE-7927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael McCandless updated LUCENE-7927:
---------------------------------------
Attachment: LUCENE-7927.patch
Another iteration, borrowing the nice native {{long -> int}} hash table from
Solr's {{NumericFacets}}, and also adding specialized implementations for
counting all facets and for the multi-valued case.
It would be nice to also support float/double but I think that should be a
separate issue.
Next up l'll make a benchmark to test whether the small value optimization
(using a simple array to count values 0 - 1023) is worthwhile ... it could be
the hash table is fast enough.
> Add facets impl to count unique numeric values
> ----------------------------------------------
>
> Key: LUCENE-7927
> URL: https://issues.apache.org/jira/browse/LUCENE-7927
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/facet
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 7.1
>
> Attachments: LUCENE-7927.patch, LUCENE-7927.patch
>
>
> The facets module has multiple facet methods for counting flat and
> hierarchical fields, and also a method for counting numeric ranges. I'd like
> to also add a method that counts unique numeric (long) values, designed to be
> used for fields that have only a few, typically low valued, numbers across
> the index e.g. a "review" rating from 1 to 5.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]