# Disable \_all and search

**URL:** <https://discuss.elastic.co/t/disable--all-and-search/23994>\
**Category:** Elasticsearch\
**Created:** [June 19, 2015, 2:07pm UTC](https://discuss.elastic.co/t/disable--all-and-search/23994 "2015-06-19T14:07:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [June 19, 2015, 2:07pm UTC](https://discuss.elastic.co/t/disable--all-and-search/23994/1 "2015-06-19T14:07:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![orenor](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@orenor](https://discuss.elastic.co/u/orenor)\
**Post date:** [June 19, 2015, 6:04pm UTC](https://discuss.elastic.co/t/disable--all-and-search/23994/2 "2015-06-19T18:04:58Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_default_field)

---

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [June 24, 2015, 12:00am UTC](https://discuss.elastic.co/t/disable--all-and-search/23994/3 "2015-06-24T00:00:16Z")

</div>

Hi,

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:05am UTC](https://discuss.elastic.co/t/disable--all-and-search/23994/4 "2017-07-06T00:05:47Z")

</div>


