[
https://issues.apache.org/jira/browse/LUCENE-5735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated LUCENE-5735:
---------------------------------
Attachment: LUCENE-5735__PrefixTreeFacetCounter.patch
This patch improves on the trunk committed code:
* Refactors out a PrefixTreeStrategy agnostic "PrefixTreeFacetCounter" with a
callback/visitor for each count. NumberRangePrefixFacets is no more, and the
NumberRangePrefixTreeStrategy provides a callback to populate the same data
structure it did before. It could be slower because of a separation that's here
now that wasn't before but I doubt it'd be noticeable.
* Instead of filtering docs to be faceted with a Bits, you now provide a
Filter. I think this is much better API wise than before.
This patch depends on two recent small spatial refactorings, LUCENE-6181 and
LUCENE-6182. I'll commit these issues in a bit and let Jenkins beat on it.
> Faceting for DateRangePrefixTree
> --------------------------------
>
> Key: LUCENE-5735
> URL: https://issues.apache.org/jira/browse/LUCENE-5735
> Project: Lucene - Core
> Issue Type: New Feature
> Components: modules/spatial
> Reporter: David Smiley
> Assignee: David Smiley
> Fix For: 5.x
>
> Attachments: LUCENE-5735.patch, LUCENE-5735.patch,
> LUCENE-5735__PrefixTreeFacetCounter.patch
>
>
> The newly added DateRangePrefixTree (DRPT) encodes terms in a fashion
> amenable to faceting by meaningful time buckets. The motivation for this
> feature is to efficiently populate a calendar bar chart or
> [heat-map|http://bl.ocks.org/mbostock/4063318]. It's not hard if you have
> date instances like many do but it's challenging for date ranges.
> Internally this is going to iterate over the terms using seek/next with
> TermsEnum as appropriate. It should be quite efficient; it won't need any
> special caches. I should be able to re-use SPT traversal code in
> AbstractVisitingPrefixTreeFilter. If this goes especially well; the
> underlying implementation will be re-usable for geospatial heat-map faceting.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]