Elasticsearch returns all documents when query does not match


When i try to search something like this "dasfjhasşlfjsşadl" which does not make any sense, elasticsearch still returns the all documents like i use matchAllQuery.

I am using elasticsearch 2.4.1 with spring data.

Thanks in advance.


Can you past your query here plz ?


Hi Xavier,

Thanks for answering. I have just solved it. It was due to a condition in my query.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.