Posted by MattFielding on October 31, 2008 at 12:19pm
Jump to:
| Project: | CCK Facets |
| Version: | 6.x-1.x-dev |
| Component: | Date Facets |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I have a guided search using two CCK fields. The first - a user reference field works fine but the the second - a date field doesn't work as expected. It will list all the years with the amount of results. i.e:
- 2006 (62)
- 2007 (39)
- 2008 (59)
But clicking on 2006 will bring up the results for 2007. 2008 will show nothing.
Comments
#1
I'm seeing precisely the same symptoms on my site, using the 6.x-1.x-dev version on a D6 install. Strange thing is that I'm pretty sure it was working fine until recently, which suggests that maybe something else is causing this behaviour?
#2
Update: I can't see anything else on my site that might be obviously affecting this, so I'm raising this as a critical bug in the latest 6.x dev version.
To be clear, the date facet works fine in terms of listing and counting my nodes by the correct year, but if I click on a category, e.g. 2009, the results page shows me the listings for 2010. Click on the category for 2007 and the 2008 results appear.
I do have one or two entries that are dated prior to 1902 - would this have an effect on search results?
See also this thread in the Faceted Search issue queue.
#3
I had to hack the module slightly to get this working correctly
I made some changes to the 'build_results_query' function of date_facets.module
I won't submit a patch because I'm not sure if this function was root of the problem.
I basically changed any instance of "$this->_value['year']" to "$this->_value['year']-1" and it works for me.
#4
#3 worked for me thank you Matt, subscribing
#5
I don't know if that can help, but we met problems of timezone on our site and found this solution :
http://drupalfr.org/forum/support/developpement/27462-cck-date-et-cck-fa...
Thank you for your work!
Brn