# Configuring default\_operator at the index level

**URL:** <https://discuss.elastic.co/t/configuring-default-operator-at-the-index-level/72242>\
**Category:** Elasticsearch\
**Created:** [January 20, 2017, 12:49am UTC](https://discuss.elastic.co/t/configuring-default-operator-at-the-index-level/72242 "2017-01-20T00:49:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fishkins](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@Fishkins](https://discuss.elastic.co/u/Fishkins)\
**Post date:** [January 20, 2017, 12:49am UTC](https://discuss.elastic.co/t/configuring-default-operator-at-the-index-level/72242/1 "2017-01-20T00:49:46Z")

</div>

I'd like all queries against my index to use AND as the default operator. Is it possible to configure that at the index level, or do I need to set default\_operator on every query I send? I see that [default\_field can be configured at the index level](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_default_field), but I don't see a similar setting for default\_operator.

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [January 23, 2017, 6:05pm UTC](https://discuss.elastic.co/t/configuring-default-operator-at-the-index-level/72242/2 "2017-01-23T18:05:48Z")

</div>

Right now there is no way to configure that on the index level, but I could see it as something that could be added, can you open a github issue with a feature request for this?

---

<div class="post-metadata">

**Author:** ![Fishkins](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@Fishkins](https://discuss.elastic.co/u/Fishkins)\
**Post date:** [January 23, 2017, 6:35pm UTC](https://discuss.elastic.co/t/configuring-default-operator-at-the-index-level/72242/3 "2017-01-23T18:35:18Z")

</div>

I opened an issue in Github. Thanks!

---

<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:** [February 20, 2017, 6:35pm UTC](https://discuss.elastic.co/t/configuring-default-operator-at-the-index-level/72242/4 "2017-02-20T18:35:19Z")

</div>

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