When entering a new node with some categories set, the according facet do not list the node nor the count is updated. Only after search index is rebuilt count is correct again (but not for newly added nodes).

As far as I remember this happened after changing category terms and playing around with some other modules: workflow, nodeapproval, modr8 -- sorry cannot reproduce when/what it made corrupt right now.

Nevertheless, great that faceted_search now works for cck! Thanks a lot!

Comments

brevity’s picture

Category: bug » support

Do I understand correctly taht taxonomy-facet counts only update on cron-runs (as of current implementation)? Would it be too expensive to call _taxonomy_facets_update or something from within hook_nodeapi?

Or is just my setup corrupt... the stored array in table faceted_search_variables ok? types = a:3:{s:3:"pub";s:3:"pub";s:4:"page";i:0;s:5:"story";i:0;}

David Lesieur’s picture

Exactly, as of the current implementation the node-term references are updated only on cron run. I think it could be safe enough to update these when a node is updated (as did the previous implementation), but within hook_nodeapi() the data structure for node terms is not the same as after a node_load(), which complicates matters a little bit and requires to clumsily duplicate free tags validation code from taxonomy.module. That was the reason for removing the nodeapi handling...

David Lesieur’s picture

Status: Active » Fixed
David Lesieur’s picture

Status: Fixed » Closed (duplicate)

This discussion is putting new light on this issue.