I am running a query in sense that should return all entities with display = true
POST /myIndex/myEntity/_search
{
"query": {
"term": {
"doc.display": true
}
}
}
In my ES index I have one entity with dynamic mapping = false and that contains the field doc.display:
"display": {
"type": "boolean"
},
I have two entities in the DB - one with display=true, one with display=false.
when I run the query with "false" it returns one entity.
when I run the query without filter it returns two entities.
when I run the query with "true" it returns no entity.
Any idea how can this happen?