Closed (fixed)
Project:
Faceted Search
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2008 at 17:56 UTC
Updated:
4 Jul 2008 at 23:33 UTC
The variables content_type_facet_types and types in faceted_search_variables needs to be rebuilt after changing the machine-readable name of a content type.
I realize these aren't often changed, but in my case I had to do this so that I could sort search results by node type via Views. I renamed several content types so that they would appear in the client's desired order.
I didn't write a patch because I solved this by dropping the faceted_search* tables and reinstalling the module, although this didn't work until I had also removed the entries in the system table relating to this module, since until then the install script thought the tables had already been created.
Comments
Comment #1
xtfer commentedI solved this by clearing the cache.
Comment #2
mvc@xtfer: the first thing I tried was clearing Drupal's cache, but the problem is in the table faceted_search_variables, which is not regenerated when the cache is cleared. If you look in that table you'll see the content types listed as I described.
Comment #3
david lesieur commentedI could not reproduce this with the current dev version. Some work has been done in the 1.x series around the handling of node types, and it likely has solved this problem.
However, when renaming a node type you still lose the settings associated to that type. Actually, the old type's settings remain in the database (as you have observed), but are ignored (in 1.x). Then the next time the search environment is saved, the obsolete types get removed from the database for that environment.
Comment #4
david lesieur commentedPlease re-open the issue if you find that the bug still exists.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.