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

David Smiley commented on LUCENE-5735:
--------------------------------------

Hello [~shaie].  I did take a quick look even before your suggestion now and 
there isn't much congruency between both.  For one thing, the facet module 
yields a LabelAndValue for each count yet for the faceting I did, I 
deliberately avoided computing the label String for each value and instead 
return a int[] for a higher level bucket.  So if you facet by day, you'll get a 
month "parent" with a label and an int array of size 31 (or sometimes 30 or 
28).  Also, I don't know what to make of the "dim" and "path" stuff.  So it 
doesn't seem like a good fit, and might erroneously suggest to users some sort 
of integration with the facets module that doesn't actually exist.

> 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
>         Attachments: LUCENE-5735.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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to