Thanks Hoss, the problem is resolved.
The real problem was my query parameter. I was storing daysForFilter with
offset of 1 sec, and date in query parameter "facet.date.start" also had
same offset. This was causing the overlaps, as in the facet value of
2009-10-23T18:30:01 was matching both 2009-1
:
q=&facet=true&facet.date=daysForFilter&facet.date.start=2009-10-23T18:30:01Z&facet.date.gap=%2B1DAY&facet.date.end=2009-10-28T18:30:01Z
: For example I get total 18 documents for my query, and the facet count for
: date 2009-10-23T18:30:01Z is 11; whereas there are only 5 documents
: containin
hi guys,
I am indexing events in solr, where every Event contains a startDate and
endDate.
On the search page, I would like to have a Date Facet where users can
quickly browse through dates they are interested in.
I have a field daysForFilter in each document which stores timestamps from
t