Closed (fixed)
Project:
Faceted Search
Version:
6.x-1.x-dev
Component:
Taxonomy Facets
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2009 at 09:14 UTC
Updated:
1 Apr 2011 at 02:46 UTC
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
Comment #1
David Lesieur commentedCan 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.
Comment #2
stevenghines commentedThanks for the above instructions - it worked for me to help resolve the problem. I didn't need to re-save my taxonomy terms.
Comment #3
David Lesieur commentedComment #5
dwkitchen commentedI 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.
Comment #6
dwkitchen commentedOK I have manually changed the vocabulary hierarchy in the database to 2
Comment #7
David Lesieur commentedComment #9
bunker commentedI have the same problem in drupal 6. But the patch doesn't do anything for me. Any hints?
Comment #10
dwkitchen commentedbunker - 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
Comment #11
perusio commentedDitto for me. The above referred patch didn't pull it through. Issuing an UPDATE in the MySQL terminal did the trick:
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.
See: http://api.drupal.org/api/function/taxonomy_check_vocabulary_hierarchy/6
Comment #12
kelvincool commentedJust 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. :)
Comment #13
BeaPower commentedDid this, but how to default list the subcategories in the home page where the block is being displayed?
Comment #14
brycesenz commentedI'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.
Comment #15
haopei commentedhey 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?