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
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

AttachmentSize
cosmetics.GIF73.92 KB

#1

osherl - November 12, 2009 - 13:58
Title:Node count incorrect in multi-level taxonomy heirachy» Node count incorrect in multi-level taxonomy hierarchy

Can someone point out the function that calculates the node counts per term in the Taxonomy Facets module?
Thx

#2

adrinux - November 26, 2009 - 20:16

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

adrinux - November 27, 2009 - 11:51

My issues were fixed by applying the 2 first patches listed on the faceted search module page.

 
 

Drupal is a registered trademark of Dries Buytaert.