[chef] RE: Re: knife search queries


Chronological Thread 
  • From: M G < >
  • To: " " < >
  • Subject: [chef] RE: Re: knife search queries
  • Date: Mon, 22 Dec 2014 08:47:10 -0800
  • Importance: Normal

thanx ranjib. 


Date: Sun, 21 Dec 2014 17:34:19 -0800
From:
To:
Subject: [chef] Re: knife search queries

wiring_stackid . nesting is denoted by underscore not period, in solr /chef search queries

On Dec 21, 2014 4:59 PM, < "> > wrote:
Hi, I am running the following 2 queries

First query says give me the nested attribute wiring.stackid of all nodes with
role mq. The output is as expected.

knife search node 'roles:mq' -a wiring.stackid
2 items found

us1-sn1-rmq5:
  wiring.stackid: 97a2205a-87ec-11e4-9440-ae7ba1a65649

us1-sn1-rmq4:
  wiring.stackid: 791d001c-87da-11e4-9560-ae7ba1a65649

The second query is a more surgical query which says give me the node with a
particular nested attribute wiring.stackid value. If you see the nested
attribute value is taken from the previous query.

 knife search node 'wiring.stackid:97a2205a-87ec-11e4-9440-ae7ba1a65649'

0 items found

Why des the second query show zero output when the first query shows there is
clearly a node with nested attribute
wiring.stackid:97a2205a-87ec-11e4-9440-ae7ba1a65649 ?

Regards



Archive powered by MHonArc 2.6.16.

§