Knife search queries

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

wiring_stackid . nesting is denoted by underscore not period, in solr /chef
search queries
On Dec 21, 2014 4:59 PM, meher03@hotmail.com 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

thanx ranjib.

Date: Sun, 21 Dec 2014 17:34:19 -0800
From: dey.ranjib@gmail.com
To: chef@lists.opscode.com
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, meher03@hotmail.com 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