Originally posted at CCK facets.
I have a guided search and one of the blocks is based on a cck checkbox field. Many of the values are displayed more than once.
Actually, I have 2 such blocks, but only one is giving me trouble. I suspect that is because the one with duplicates is one in which people are more likely to select more than one value. In any event, many of the values are coming up multiple times.
I have category A and Category B. Then I have Checkbox 1 and Checkbox 2.
In the guided search box for my checkbox facet, I get 2 instances of Checkbox 1 - one for Category A and one for Category B. Then 2 instances of Checkbox 2 one each for Categories A & B, and so forth.
I have no way of knowing if this is a shortcoming of CCK facets or the main Facets package. Please advise.
Comments
Comment #1
abasso commentedHad same problem, turns out I had duplicate values in the database! Also if you are using a view to output the result of the search you might want to enable "distinct" under "basic settings" for the view. Hope this helps!
Comment #2
rafaelcaceres commentedSame here
Are you using fs_context module?
For me, fs_context calls $env->prepare, so its duplicate values of guided search because $this->_filters are merged two times.