# When set include\_in\_all to true, what's the value to be stored into \_all for an analyzed field?

**URL:** <https://discuss.elastic.co/t/when-set-include-in-all-to-true-whats-the-value-to-be-stored-into--all-for-an-analyzed-field/15750>\
**Category:** Elasticsearch\
**Created:** [February 12, 2014, 9:48am UTC](https://discuss.elastic.co/t/when-set-include-in-all-to-true-whats-the-value-to-be-stored-into--all-for-an-analyzed-field/15750 "2014-02-12T09:48:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Ji](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Ivan\_Ji](https://discuss.elastic.co/u/Ivan_Ji)\
**Post date:** [February 12, 2014, 9:48am UTC](https://discuss.elastic.co/t/when-set-include-in-all-to-true-whats-the-value-to-be-stored-into--all-for-an-analyzed-field/15750/1 "2014-02-12T09:48:08Z")

</div>

Hi all,

I am wondering what the real value to be stored into the \_all field when  
setting include\_in\_all to true?

Assume I have a indexed string field whose analyzer is a path\_hierarchy  
tokenizer and the field's include\_in\_all is set to true, ex.  
/MyDocument/File/Picture.

What's the value to be stored into the \_all ?

(1) the original value, which is /MyDocument/File/Picture  
(2) the tokens, which are /MyDocument, /MyDocument/File,  
/MyDocument/File/Picture

Which one?

But for a multi\_field, from the official document, it seems it only  
supports the original value event the default field is analyzed, am I  
correct?  
Here:  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-multi-field-type.html#\_include\_in\_all\_2](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-multi-field-type.html#_include_in_all_2)

But there might exist many fields with different analyzer, to store the  
tokens into \_all seems reasonable for me. Or not how can I use one analyzer  
of \_all to deal with all the different values which are from the fields  
with different analyzers?

Ideas?

Cheers,

Ivan

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0fbf9d2f-957a-48b8-a2af-acfde08971b0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0fbf9d2f-957a-48b8-a2af-acfde08971b0%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Binh\_Ly](https://discuss.elastic.co/u/Binh_Ly)\
**Post date:** [February 12, 2014, 3:02pm UTC](https://discuss.elastic.co/t/when-set-include-in-all-to-true-whats-the-value-to-be-stored-into--all-for-an-analyzed-field/15750/2 "2014-02-12T15:02:30Z")

</div>

It will be the original field value from the source document. And then it  
is analyzed by whatever analyzer you assign to the \_all field.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9a6b66ed-8586-4bf8-bc8c-bd71895ddacc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9a6b66ed-8586-4bf8-bc8c-bd71895ddacc%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:50am UTC](https://discuss.elastic.co/t/when-set-include-in-all-to-true-whats-the-value-to-be-stored-into--all-for-an-analyzed-field/15750/3 "2017-07-06T01:50:46Z")

</div>


