Disable _all and search


(venkata nagaraju buddarapu) #1

I want to disable _all to reduce the index size and I was using _all and searches works

Now searches doesnt work after removing _all , can some one help me understand this and how to do this


(orenor) #2

Hi,
I'm guessing you are using a query string query. This query type uses _all as its default field to search on.
This is useful when you are not searching on a specific field and want to run a full search.

Try specifying an explicit field on your search as explained here:
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_default_field


(venkata nagaraju buddarapu) #3

Hi,

Thank you and you said query string query and what are the different types of queries


(system) #4