# Make \_all's analyzer to not\_analyzed

**URL:** <https://discuss.elastic.co/t/make--alls-analyzer-to-not-analyzed/95553>\
**Category:** Elasticsearch\
**Created:** [August 2, 2017, 2:38pm UTC](https://discuss.elastic.co/t/make--alls-analyzer-to-not-analyzed/95553 "2017-08-02T14:38:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuval](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuval](https://discuss.elastic.co/u/Yuval)\
**Post date:** [August 2, 2017, 2:38pm UTC](https://discuss.elastic.co/t/make--alls-analyzer-to-not-analyzed/95553/1 "2017-08-02T14:38:15Z")

</div>

I'm trying to run a regexp query on the \_all field, this query is failing because \_all is analyzed.  
Is there a way to make the \_all field not analyzed?

Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 2, 2017, 2:52pm UTC](https://discuss.elastic.co/t/make--alls-analyzer-to-not-analyzed/95553/2 "2017-08-02T14:52:34Z")

</div>

Use `copy_to` feature instead and copy the content you want to whatever field.  
This field can be non analyzed or a keyword.

---

<div class="post-metadata">

**Author:** ![Yuval](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuval](https://discuss.elastic.co/u/Yuval)\
**Post date:** [August 3, 2017, 8:36am UTC](https://discuss.elastic.co/t/make--alls-analyzer-to-not-analyzed/95553/3 "2017-08-03T08:36:02Z")

</div>

Hey David, thanks for the quick reply

I cant quite figure out how to use the copy\_to feature because I intend to copy a field of nested type to the new field..  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 3, 2017, 9:06am UTC](https://discuss.elastic.co/t/make--alls-analyzer-to-not-analyzed/95553/4 "2017-08-03T09:06:15Z")

</div>

An example of what you tried?

---

<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:** [August 31, 2017, 9:06am UTC](https://discuss.elastic.co/t/make--alls-analyzer-to-not-analyzed/95553/5 "2017-08-31T09:06:54Z")

</div>

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