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 Re: date facets without intersections
Date Wed, 28 Apr 2010 14:10:37 GMT
Thanks,

that's great!

Péter

----- Original Message ----- 
From: "gwk" <gijs@eyefi.nl>
To: <solr-user@lucene.apache.org>
Sent: Wednesday, April 28, 2010 3:05 PM
Subject: Re: date facets without intersections


> Hi,
>
> Several possible solutions are discussed in 
> http://lucene.472066.n3.nabble.com/Date-Faceting-and-Double-Counting-td502014.html
>
> Regards,
>
> gwk
>
> On 4/27/2010 10:02 PM, Király Péter wrote:
>> 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