Exist nested aggregations


(Niv Penso) #1

Hey guys,

I have a document with a nested field called "field1".
I want to make an aggregation exist query by "field1"

Is this possible?

What i am trying to do:
GET viewsdata/tmoview1/_search
{
"query": {
"match_all": {}
},
"aggregations":{
"views":{
"filter": {
"exists": {
"field": "msv"
}
}
}
},
"size": 0
}

what do i do wrong?

Thnx Niv

--
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/a7b0eb63-edda-4467-94ff-55fb5454c4b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2