Greetings - great module :-)

I have a vocabulary with a hierarchy of terms and have added to the faceted search with a guided search block. The Guided search block is rendered as a flat list of all the terms, rather than terms and subterms.

I have tried rebuilding the index.

Comments

David Lesieur’s picture

Can you try the patch in #353775: Vocabulary edit form resets the 'hierarchy' (D7) field to '0' and 'relations' field (D6) to '1', and tell us if you still get this issue? You might also have to re-save a child term in your vocabulary to make sure the 'hierarchy' flag is set properly.

stevenghines’s picture

Thanks for the above instructions - it worked for me to help resolve the problem. I didn't need to re-save my taxonomy terms.

David Lesieur’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dwkitchen’s picture

Status: Closed (fixed) » Needs work

I also have this problem - I have tried the patch and un-installing and re-installing.

Both to no effect.

I did previously have the results in a Hierarchy but cannot identify when it changed.

dwkitchen’s picture

OK I have manually changed the vocabulary hierarchy in the database to 2

David Lesieur’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bunker’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev

I have the same problem in drupal 6. But the patch doesn't do anything for me. Any hints?

dwkitchen’s picture

bunker - you will need to use phpMyAdmin or something similar to access the Vocabularys table and manualy change the hierarchy to "2"

I have to do this ever time I edit the Vocabulary.

David

perusio’s picture

Ditto for me. The above referred patch didn't pull it through. Issuing an UPDATE in the MySQL terminal did the trick:

UPDATE vocabulary SET hierarchy = <number of parents flag> WHERE vid = <your vocabulary ID>

It doesn't have to be 2: it depends on the depth of the vocabulary. For vocabularies with terms of depth greater than 1, set it to 2, otherwise set it to 1. I.e.

<number of parents flag> ::= min(<number of parents>, 2)

See: http://api.drupal.org/api/function/taxonomy_check_vocabulary_hierarchy/6

kelvincool’s picture

Just wanted to add in case anyone had the same problem, I manually changed the hierarchy to 1 in the table. The taxonomy guided search disappeared. I tried clearing the cache, re-saving the taxonomy, rebuilding the taxonomy index. Nothing helped. It turns out I needed to run cron a fair few times before it would index the taxonomy. Afterwards the taxonomy facet popped back up again. :)

BeaPower’s picture

Did this, but how to default list the subcategories in the home page where the block is being displayed?

brycesenz’s picture

I'll echo the comment in #12 - manually changing the heirarchy in the database, then clearing caches, running cron, running updates, etc. did the trick for me. It would be nice to get a patch to the core issue here (the original patch did not work for me), but the manual fix works great.

haopei’s picture

hey dwkitchen,

I did this, and the hierarchy seems to be fixed. However it isn't near perfect since the terms are 'collapsed'. Is there any way to expand it?