lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: Time range facets on documents associated with a time interval
Date Wed, 25 Mar 2015 18:35:10 GMT
Hi Rainer,

If Solr is an option, then as of 5.0 you can use “DateRangeField” and use
Solr’s standard faceting on that.

If this is at the Lucene level, you can do the same approach as Solr — use
NumberRangePrefixTreeStrategy configured with a DateRangePrefixTree.  Then
for each interval, generate a query to calculate the hits.

FYI There is a more efficient approach in-progress here:

~ David

On Wed, Mar 25, 2015 at 5:17 AM, Simon Rainer <>

> Hi,
> I'm trying to implement dynamic range facets in Lucene, along the same
> lines as in the org.apache.lucene.demo.facet.RangeFacetsExample. However,
> in my case I'm dealing with documents that don't have a single timestamp,
> but an interval defined by a start- and end-timestamp.
> What I'm trying to end up with, I guess, is exactly this
> But I couldn't figure out whether this functionality has really gone into
> Lucene. In discussion, someone also pointed out this to me:
> i.e. using (start/end) as point coordinates and then use spatial indexing.
> Is this still the recommended approach? Any pointers on how to best
> approach this would be highly appreciated.
> Thanks,
> Rainer
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message