I am trying elasticsearch with about 300 million documents and try to test some filters and queries
suppose I have a type with name my_type and index my_index, with field my_field
when I run this query:
get /my_index/_my_type/_count
elastic returns :
{
"count": 301050195,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
}
}
and when I try this query:
get /my_index/_my_type/_count
{
"query":{
"match": {
"my_field": 'the text that does not appear at all !'
}
}
}
again elasticsearch returns this result:
{
"count": 303604993,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
}
}
It seem my query does not effect and all results return again ...
so what is the problem ?