lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Király Péter <pkir...@tesuji.eu>
Subject date facets without intersections
Date Tue, 27 Apr 2010 20:02:05 GMT
Dear Solr users,

I am interesting, whether it is possible to get date facets without 
intersecting
ranges. Now the documents which stands on boundaries of ranges are covered
by both ranges. An example:

facet result (from Solr):
<int name="1000-01-01T00:00:00Z">3</int>
<int name="1100-01-01T00:00:00Z">3</int>
<int name="1200-01-01T00:00:00Z">12</int>

If we translate into queries, it means that the number of document
matching query date_fc:[1000-01-01T00:00:00Z TO 1100-01-01T00:00:00Z] is 3,
and the number of document matching query
date_fc:[1100-01-01T00:00:00Z TO 1200-01-01T00:00:00Z] is 3 as well.
I have a document with date 1100-01-01T00:00:00Z, and it matches
both queries. I haven't found such parameters for date facets, but maybe you 
know
a Solr secret, which prevents this intersection. I can do it with query 
facets,
but that seems to be more complicated, than the very comfortable date facet
parameters.

Thanks
Péter 


Mime
View raw message