Node count incorrect in multi-level taxonomy hierarchy
osherl - November 10, 2009 - 03:38
| Project: | Faceted Search |
| Version: | 6.x-1.0-beta2 |
| Component: | Taxonomy Facets |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
The Taxonomy Facets module is the heart of my new site www.safecosmeticshop.com. The main facet has four levels (i.e. Care->Skin->Sunscreen->after sun product). I have noticed that the total node count is correct only on the lowest level. I have rebuilt the Taxonomy Index multiple times. Is this a known issue?
The Site Map (www.safecosmeticshop.com/sitemap) has the correct count. An image of the Care->Nail facet is attached. The results screen shows 29 items, should be 31...
The vocabulary hierarchy is set to '2' for this to work. I have to manually adjust it every time I "change" the vocabulary.
UPDATE vocabulary SET hierarchy = '2' WHERE vid = 1
Thanks,
Laszlo
| Attachment | Size |
|---|---|
| cosmetics.GIF | 73.92 KB |

#1
Can someone point out the function that calculates the node counts per term in the Taxonomy Facets module?
Thx
#2
I think I might be seeing related behaviour.
If I add a child term to a previously flat vocabulary the facet disappears from the guided search block. Tagging content with that child term brings the facet back, but only the parent term is listed, and it now has the count of the child term. It seems it only displays terms that have content (which is fine) but also only wants to use the deepest level of terms when listing.
Basically the guided search block doesn't display taxonomy facets which have child terms correctly.
#3
My issues were fixed by applying the 2 first patches listed on the faceted search module page.