Hi Liam,

This happens because the range searches for date faceting are inclusive on both ends. So values on the exact edges of the intervals are counted twice. You can see some solutions at http://old.nabble.com/Date-Faceting-and-Double-Counting-td25227846.html

Regards,

gwk

On 2/24/2010 6:54 AM, Liam O'Boyle wrote:
Afternoon,

I have a strange problem occurring with my date faceting. I seem to have more results in my facets than in my actual result set.

The query filters by date to show results for one year, i.e. ib_date:[2000-01-01T00:00:00Z TO 2000-12-31T23:59:59Z], then uses date faceting to break up the dates by month, using the following parameters

facet=true
facet.date=ib_date
facet.date.start=2000-01-01T00:00:00Z
facet.date.end=2000-12-31T23:59:59Z
facet.date.gap=+1MONTH

However, I end up with more numbers in the facets than there are documents in the response, including facets for dates that aren't matched. See below for a summary of the results pulled out through /solr/select.

Is there something I'm missing here?

Thanks,
Liam

Reply via email to