# Search query without specifying the field

**URL:** <https://discuss.elastic.co/t/search-query-without-specifying-the-field/197254>\
**Category:** Elasticsearch\
**Created:** [August 29, 2019, 4:23am UTC](https://discuss.elastic.co/t/search-query-without-specifying-the-field/197254 "2019-08-29T04:23:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MKU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mku/32/48327_2.png) [@MKU](https://discuss.elastic.co/u/MKU)\
**Post date:** [August 29, 2019, 4:23am UTC](https://discuss.elastic.co/t/search-query-without-specifying-the-field/197254/1 "2019-08-29T04:23:12Z")

</div>

Hi,  
How do you perform search query without specifying the field, basically to perform search on all fields.  
I realize that **\_all** is removed in elasticsearch 7.  
I tried **query\_string** with out fields but i get **query\_shard\_exception** and **search\_phase\_execution\_exception**  
Is there any other way?

Thanks

---

<div class="post-metadata">

**Author:** ![wangqinghuan](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wangqinghuan](https://discuss.elastic.co/u/wangqinghuan)\
**Post date:** [August 29, 2019, 5:04am UTC](https://discuss.elastic.co/t/search-query-without-specifying-the-field/197254/2 "2019-08-29T05:04:29Z")

</div>

\_all is deprecated. But you can use copy\_to to create custom \_all fields.  
See: [https://www.elastic.co/guide/en/elasticsearch/reference/6.8/copy-to.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/copy-to.html)

---

<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:** [September 26, 2019, 5:04am UTC](https://discuss.elastic.co/t/search-query-without-specifying-the-field/197254/3 "2019-09-26T05:04:57Z")

</div>

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