Download & Extend

Subcategories / Terms not heirachical in Guided Search

Project:Faceted Search
Version:6.x-1.x-dev
Component:Taxonomy Facets
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Can you try the patch in #353775: Vocabulary edit form resets the 'hierarchy' field (D7) 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.

#2

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

#3

Status:active» fixed

#4

Status:fixed» closed (fixed)

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

#5

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.

#6

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

#7

Status:needs work» fixed

#8

Status:fixed» closed (fixed)

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

#9

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?

#10

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

#11

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

#12

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. :)

#13

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

#14

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.

#15

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?