I am storing data in the following format:
{
"doc_id":"3434567778932";
"retweeted_user_profile":{
"name": "Henry",
"gender":"male"
}
}
I have mapped "retweeted_user_profile" as nested.
However the following query is not working
curl -XGET 'http://localhost:9200/twitter/_search' -d '{
"query" : {
"filtered" : {
"filter" : {
"missing" : { "field" : "retweeted_user_profile" }
}
}
}
}'
It is returning me all the results i.e it is also returning documents which
do not have field "retweeted_user_profile".
--
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/8fb7a847-ac38-4bd0-9250-d655faebb51b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.