Elastic search returns unexplained result when filtering true and filtering false

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?

Hi @stam585,

can you please post a complete example (including the mapping you use when you create the index)?

Daniel