[chef] Re: I want to search nodes with i5 cpu unit, but unfortunately.


Chronological Thread 
  • From: Booker Bense < >
  • To:
  • Subject: [chef] Re: I want to search nodes with i5 cpu unit, but unfortunately.
  • Date: Tue, 19 Aug 2014 09:35:09 -0700

I did some more digging and my previous suggestion won't help.  See


What I would try next is using the AND search syntax 

knife search -i node "model_name:*Intel* AND model_name:*i5*"

Depending on the exact backend database used, there can sometimes be odd side effects with tokenizing the 
strings for building search indexes. From the face of it, your original query should work, but given the 
string, it may be triggering some odd side effects. 

 


On Tue, Aug 19, 2014 at 6:30 AM, Booker Bense < " target="_blank"> > wrote:
FWIW, I don't know if this will help or not, but your regexp doesn't match the string using Ruby/Perl style regexp. Try this.

knife search -i node "model_name:Intel.*i5.*"

- Booker C. Bense




Archive powered by MHonArc 2.6.16.

§