lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Király Péter <>
Subject Re: date facets without intersections
Date Wed, 28 Apr 2010 13:01:53 GMT
Grant Ingersoll said:
> You should be able to do inclusive/exclusive ranges using the query parser 
> by
> mixing matching brackets [] and braces {}.
> See 

Hi Grant,

Thanks for your answer, but my problem is not that how to query, but the 
of facet list. The list's numbers are only true if we use [date1 TO date2] 
in query.
If we use {date1 TO date2} in query, the number of results will be wrong.
What is the wrong with that? I should display dates in facet list as 

publication date
1000-1100 (3)
1100-1200 (3)
1200-1300 (12)
as you can see here, the dates are duplicated, the 'to' date wil be the next 
'from' date.

However it would be more elegant to display something like that:

publication date
1000-1099 (2)
1100-1199 (1)
1200-1299 (14)

It would involve, that
<lst name="facet_dates">
<lst name="date_df">
<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>
should be understand, that between 1000-01-01T00:00:00Z
and 1100-01-01T00:00:00Z minus 1 sec (or millisec) there are 3 results.

Grant, from your answer it is clear, that currently no way for the date 
facets to
behave like this, but I guess, that it may be an alternative solution.


View raw message