- From: Nick <
>
- To:
- Subject: [chef] Re: index questions
- Date: Tue, 8 Sep 2009 16:42:21 -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:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=I5biTV9m+VF+4Jb/d6bVk1q2/PYVVSbAhzNMMePr0GKMrGFHAL/7iZv1byo538Pk8hYTXhqQaauSNOZ0lXB9uaruEAOblFtcxY0aW4VpU2sBoT2JZVjnVEoTuthp33L1OOp6G/3Xin3cjaB3IdveOg+yHAN6wIFNvtzkn8hikIE=;
The best workaround that I can come up with is to make REST requests for all
the nodes, and filter for the ones I want (i.e. a chef-node table-scan).
Are there better workarounds maybe?
-Nick
--- On Tue, 9/8/09, Nick
<
>
wrote:
>
From: Nick
>
<
>
>
Subject: [chef] index questions
>
To:
>
>
Date: Tuesday, September 8, 2009, 4:11 PM
>
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
>
>
>
>
>
Archive powered by MHonArc 2.6.16.