I want to search nodes with i5 cpu unit, but unfortunately


#1

Why I cannot search with two wildcards ?

I want to search nodes with i5 cpu unit, but unfortunately.

$ knife search -i node "model_name:Inteli5"
0 items found.

This is what’s saved on server:

model_name:
Intel® Core™ i5-2300 CPU @ 2.80GHz

Thank you.


Faithfully yours,

CVision Lab System Administrator
Vladimir Skubriev


#2

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

#3

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

http:docs.getchef.com/knife_search.html

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 bbense@gmail.com 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