I have a content type containing a year of publication field. This field is used as a facet. This facet appears when searching in the Guided Search block. When I do a search, I see (5) results for 2008, (11) for 2009, (1) for 2010 in the Guided Search block. Clicking the 2008 takes me to what appears the correct url, and the page title says I'm looking at 2008 results, but I see the 11 results for 2009. If I click the 2009 results, I see the one result for 2010.

Seems to me to be a bug. Please let me know if there's any more information I can provide to help.

Comments

tobedeleted’s picture

I'm seeing the exact same issue on my site, which has a content type that includes a 'year established' field. I've posted some information in this thread in the CCK Facets issue queue. Is this a problem with Faceted Search or with CCK Facets? Happy to provide more details in order to help get this resolved.

tobedeleted’s picture

Additional information:

If, having selected a year from the listed options in the guided search block (let's say I select 2007), the results page then displays the results for 2008 (i.e. the selected year+1). On the results page the guided search block now shows in my date category a single bullet with the text 'Dec 2007' and the number of results alongside in parentheses. The displayed number of results refers to the presented number of results, i.e. the 2008 items and not the required 2007 items. Also I'm not sure why the month is shown, as the data collected for each item is only the year - day, month and time information is not being requested. The data stored in the database is of the form '2009-00-00T00:00:00'

This leads me to think that this bug is apparent only in the use case where only the year is being used.

Does this tally with your experience, ryan.clark?

wgrunberg’s picture

I have the same problem as ryan.clark. My case, I am only entering a year into an ISO formated CCK-date field, supports upperholme's suggestion. How can I fix it shortly from entering a month and a day or replacing the date field with an integer CCK field?