When set include_in_all to true, what's the value to be stored into _all for an analyzed field?


(Ivan Ji) #1

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

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.
To view this discussion on the web visit 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.


(Binh Ly) #2

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.
To view this discussion on the web visit 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.


(system) #3