# Changing the default query in discovery

**URL:** https://discuss.elastic.co/t/changing-the-default-query-in-discovery/46592
**Category:** Kibana
**Created:** [April 6, 2016, 8:10pm UTC](https://discuss.elastic.co/t/changing-the-default-query-in-discovery/46592 "2016-04-06T20:10:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AlexClineBB](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexclinebb/32/8914_2.png) [@AlexClineBB](https://discuss.elastic.co/u/AlexClineBB)
#### Post date: [April 6, 2016, 8:10pm UTC](https://discuss.elastic.co/t/changing-the-default-query-in-discovery/46592/1 "2016-04-06T20:10:34Z")

</div>

We've disabled the \_all field in our indexes, so the default query of "_" doesn't work. We instead use "tags:_". Is there a way to make this the new default when users open the Discover interface? They get confused when results load, but resubmitting the query gives them a 'No results found' sad face.

---

<div class="post-metadata">

### Author: ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)
#### Post date: [April 6, 2016, 9:26pm UTC](https://discuss.elastic.co/t/changing-the-default-query-in-discovery/46592/2 "2016-04-06T21:26:13Z")

</div>

Not directly - you could pass it in as part of the URL you ask users to use, but that's the only option right now.

It seems like a useful advanced setting in Kibana though. I'd encourage you to open a [new issue](https://github.com/elastic/kibana/issues) asking for it as an enhancement.

---

<div class="post-metadata">

### Author: ![rashid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashid/32/12566_2.png) [@rashid](https://discuss.elastic.co/u/rashid)
#### Post date: [April 7, 2016, 3:34pm UTC](https://discuss.elastic.co/t/changing-the-default-query-in-discovery/46592/3 "2016-04-07T15:34:58Z")

</div>

This actually is possible. Add the `default_field` parameter to `query:queryString:options` in Advanced Settings, see [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html) for other options.

---

<div class="post-metadata">

### Author: ![AlexClineBB](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexclinebb/32/8914_2.png) [@AlexClineBB](https://discuss.elastic.co/u/AlexClineBB)
#### Post date: [April 7, 2016, 4:01pm UTC](https://discuss.elastic.co/t/changing-the-default-query-in-discovery/46592/4 "2016-04-07T16:01:33Z")

</div>

Thanks Rashid.

This works because it configures which field the "\*" is searching. I'd still like the ability to change the default search to "tags:\*" since this will better train my users to build searches using field names.

I'm going to leave the Github feature request open since it addresses a different problem than your solution.

---

<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, 1:56pm UTC](https://discuss.elastic.co/t/changing-the-default-query-in-discovery/46592/5 "2017-07-06T13:56:39Z")

</div>


