# How I can make tow fields as default query search analyzed filed in ES 1.7.1

**URL:** https://discuss.elastic.co/t/how-i-can-make-tow-fields-as-default-query-search-analyzed-filed-in-es-1-7-1/44235
**Category:** Elasticsearch
**Created:** [March 12, 2016, 8:05pm UTC](https://discuss.elastic.co/t/how-i-can-make-tow-fields-as-default-query-search-analyzed-filed-in-es-1-7-1/44235 "2016-03-12T20:05:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)
#### Post date: [March 12, 2016, 8:05pm UTC](https://discuss.elastic.co/t/how-i-can-make-tow-fields-as-default-query-search-analyzed-filed-in-es-1-7-1/44235/1 "2016-03-12T20:05:06Z")

</div>

Hi Experts,

Please guide me how I can enable only 2 fields to be a part of default query search , for now I am using following in my mapping , but I want other 2 fields except message .  
**"index.query.default\_field" : "message"**

I want something like **"index.query.default\_field" : ["src","alertmsg"]**, but it seems this setting does not support array values . Please help me on this .

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 13, 2016, 12:15am UTC](https://discuss.elastic.co/t/how-i-can-make-tow-fields-as-default-query-search-analyzed-filed-in-es-1-7-1/44235/2 "2016-03-13T00:15:24Z")

</div>

You cannot do this.

---

<div class="post-metadata">

### Author: ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)
#### Post date: [March 14, 2016, 10:36am UTC](https://discuss.elastic.co/t/how-i-can-make-tow-fields-as-default-query-search-analyzed-filed-in-es-1-7-1/44235/3 "2016-03-14T10:36:12Z")

</div>

ok, so what could be the solution to this as i disable \_all , but i don't know how it is still searching ?

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [March 18, 2016, 3:54pm UTC](https://discuss.elastic.co/t/how-i-can-make-tow-fields-as-default-query-search-analyzed-filed-in-es-1-7-1/44235/4 "2016-03-18T15:54:41Z")

</div>

Use a multi\_match query. If you are doing uri search then you need the `df` uri parameter.

---

<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 5, 2017, 11:07pm UTC](https://discuss.elastic.co/t/how-i-can-make-tow-fields-as-default-query-search-analyzed-filed-in-es-1-7-1/44235/5 "2017-07-05T23:07:07Z")

</div>


