Hello everyone,
The behaviour of the exists
query in the following example puzzles me:
PUT i
{
"mappings": {
"t": {
"properties": {
"foo": {
"type": "nested",
"properties": {
"bar": {
"type": "long"
}
}
}
}
}
}
}
PUT i/t/1
{
"foo": [
{
"bar": 1
}
]
}
POST i/_refresh
GET i/t/_search
{
"query": {
"exists": {
"field": "foo"
}
}
}
The search returns 0 results, while I expected it to return document i/t/1
.
Is it the expected behaviour?
If so, I'd appreciate a pointer to the documentation explaining why this is the case.
Thanks in advance,
Alexis F.
N.B.: I ran this example on Elasticsearch 2.3.3.