I was wondering if there is a query to obtain all the docs that have
"v4" : "myvalue" and another condition that has to be satisfied is that
this must happen inside a "v1" dictionary and whatever number of
intermediate dictionaries (none, v2, v2 and v3) that is with the three
docs written my query should give:
I was wondering if there is a query to obtain all the docs that have
"v4" : "myvalue" and another condition that has to be satisfied is that
this must happen inside a "v1" dictionary and whatever number of
intermediate dictionaries (none, v2, v2 and v3) that is with the three
docs written my query should give:
On Tue, Jul 1, 2014 at 10:19 PM, surfer <surfer@crs4.it mailto:surfer@crs4.it> wrote:
Hi,
I'm indexing something like:
first doc = { "v4" : "myvalue" }
second doc = { "v1" : [ { "v4" : "myvalue" }, { "v5" :
"anothervalue" } ] }
third doc = { "v1" : [ { "v2" : [ {"v4" : "myvalue" }] } ] }
fourth doc = { "v1" : [ { "v2" : [ { "v3" : [ { "v4" :
"myvalue" }] }
] } ] }
so nested dictionaries and array of dictionaries.
I was wondering if there is a query to obtain all the docs that have
"v4" : "myvalue" and another condition that has to be satisfied is
that
this must happen inside a "v1" dictionary and whatever number of
intermediate dictionaries (none, v2, v2 and v3) that is with the
three
docs written my query should give:
second doc, third doc and fourth doc
Any hint is appreciated
giovanni
--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to elasticsearch+unsubscribe@googlegroups.com
<mailto:elasticsearch%2Bunsubscribe@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/53B2E682.40700%40crs4.it.
For more options, visit https://groups.google.com/d/optout.
On Tue, Jul 1, 2014 at 10:19 PM, surfer <surfer@crs4.it mailto:surfer@crs4.it> wrote:
Hi,
I'm indexing something like:
first doc = { "v4" : "myvalue" }
second doc = { "v1" : [ { "v4" : "myvalue" }, { "v5" :
"anothervalue" } ] }
third doc = { "v1" : [ { "v2" : [ {"v4" : "myvalue" }] } ] }
fourth doc = { "v1" : [ { "v2" : [ { "v3" : [ { "v4" :
"myvalue" }] }
] } ] }
so nested dictionaries and array of dictionaries.
I was wondering if there is a query to obtain all the docs that have
"v4" : "myvalue" and another condition that has to be satisfied
is that
this must happen inside a "v1" dictionary and whatever number of
intermediate dictionaries (none, v2, v2 and v3) that is with the
three
docs written my query should give:
second doc, third doc and fourth doc
Any hint is appreciated
giovanni
--
You received this message because you are subscribed to the
Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to elasticsearch+unsubscribe@googlegroups.com
<mailto:elasticsearch%2Bunsubscribe@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/53B2E682.40700%40crs4.it.
For more options, visit https://groups.google.com/d/optout.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.