Curl dictionary key and value search

My data structere has a key value pair like below:

{"content_type":0,"semantic":[{"Key":"all","Value":0},{"Key":"tg","Value":1}],"user_local_id":1}
{"content_type":0,"semantic":[{"Key":"all","Value":1},{"Key":"tg","Value":0}],"user_local_id":2}

I want to get datas which has the semantic Key is "all" and its Value is
"0" using curl query. I tried some search query but I didn't get right
response ever.

http://localhost:9200/twitter/_search?q=semantic.Key:all AND
semantic.Value:0

The search query gives me each of above data. I just want to get data which
has this key value pair ":[{"Key":"all","Value":0}" How can I write search
query ?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/051eeb95-1cb6-444c-acd9-3f679ecb2df0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Use nested type

Jörg

On Sun, Aug 3, 2014 at 12:25 AM, ali koyuncu cs.alikoyuncu@gmail.com
wrote:

My data structere has a key value pair like below:

{"content_type":0,"semantic":[{"Key":"all","Value":0},{"Key":"tg","Value":1}],"user_local_id":1}

{"content_type":0,"semantic":[{"Key":"all","Value":1},{"Key":"tg","Value":0}],"user_local_id":2}

I want to get datas which has the semantic Key is "all" and its Value is
"0" using curl query. I tried some search query but I didn't get right
response ever.

http://localhost:9200/twitter/_search?q=semantic.Key:all AND
semantic.Value:0

The search query gives me each of above data. I just want to get data
which has this key value pair ":[{"Key":"all","Value":0}" How can I write
search query ?

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/051eeb95-1cb6-444c-acd9-3f679ecb2df0%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/051eeb95-1cb6-444c-acd9-3f679ecb2df0%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFwx2eTfDGc9a4KmDepyp-ZyHq310ci1Ysj69zQTN10Ng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.