Multi field mapping as a default


(Matthias Richter) #1

We have customers creating documents with arbitrary fields and we need to
both analyze and sort them on request. I wonder if there is a chance to
configure that for every field of this documents type a multi field mapping
is created, with an untouched version and an analyzed version? Like
changing the default dynamic mapping to a multi field dynamic mapping type.
Any ideas?

Thanks

matthias

--
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/781dfcaf-e8af-4b58-abb8-80beee554700%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Binh Ly) #2

You can use dynamic templates in your mappings (examples shown on the link
below):

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-root-object-type.html#_dynamic_templates

--
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/d2f2fa1d-429d-4bca-828f-0204a1e6b5f9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3