Can i set default mapping for field store?


(huangshanjay) #1

hi
i want to disable _source ,at the same time i want to use dynamic
mapping。so can i set default mapping for field store to let field with
stored?

wish you replay,thanks

--
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/8333f5e6-0413-410c-a6f3-dbe2fff1b4db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Tihomir Lichev) #2

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

You can set default properties for your fields

06 август 2014, сряда, 10:51:23 UTC+3, huangs...@gmail.com написа:

hi
i want to disable _source ,at the same time i want to use dynamic
mapping。so can i set default mapping for field store to let field with
stored?

wish you replay,thanks

--
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/5bc9da23-a8b2-4785-8fd9-cdfb08144b6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3