- From: Nick <
>
- To:
- Subject: [chef] index questions
- Date: Tue, 8 Sep 2009 16:11:38 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=cvYwHeQAszHmGWVDTeoraSvf5t4Nf5Lfelp/Ie78Tqqzvfu1hsq6JKqFwRHVccvvvl1l7L+vvDAEuWm4OkbKHluCe751JiMGaLR6vj0adFyROlGzr5IUrr4dFLKM7hvE+5iSqrUTrpyE3OtS98sAEGKdjy3UyN1k77PQzTmklDA=;
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.
1) 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?
2) 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?
-Nick
- [chef] index questions, Nick, 09/08/2009
Archive powered by MHonArc 2.6.16.