I have some questions about the Chef Index. I’m just using it to search for nodes; I’m not trying to do any fancy custom indexes.
When I use the search() function in a recipe, or if I make a REST request to “/search/node?..” , I get back multiple copies of each node. It appears each time time a node is saved (which happens multiple times during each run), a new copy is added to the index, instead of the new node overwriting the old one. Has anyone else noticed this behavior? Am I doing something wrong?
Nodes never seem to get removed from the index. If I delete a Node via the web UI, or if I make a REST request to “/delete/node/…”, the node is deleted, but it remains in the index. Or at least, the node is still included in search results. (It appears that the hook for this the ‘destroy’ method in node.rb; a quick grep of the source doesn’t find a reference to this anywhere.)
Are there additional steps that need to be done in order to maintain the index?