Is it possible for document mappings to be inherited

I have a document type with some complicated field mappings, and another
with same mappings plus one extra field.

So question: is there a way to inherit field mappings ? What options do I
have so I don't copy paste field mappings into each document type ?

--
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/29779130-01cb-4862-8212-41bd761db71a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

This is similar to dynamic templateshttp://www.elasticsearch.org/guide/en/elasticsearch/guide/current/custom-dynamic-mapping.html#dynamic-templates,
except I want to match on type eg: "my_type*", so that my_type and
my_type_extra_field get the same mappings.

On Wednesday, 21 May 2014 12:30:08 UTC+1, Ben George wrote:

I have a document type with some complicated field mappings, and another
with same mappings plus one extra field.

So question: is there a way to inherit field mappings ? What options do I
have so I don't copy paste field mappings into each document type ?

--
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/4e6c50e2-5215-4919-b4c6-3311c18764b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

What I want to do is similar to dynamic templateshttp://www.elasticsearch.org/guide/en/elasticsearch/guide/current/custom-dynamic-mapping.html#dynamic-templates,
except I want to match on type eg: "my_type*", so that my_type and
my_type_extra_field get the same field mappings.

On Wednesday, 21 May 2014 12:30:08 UTC+1, Ben George wrote:

I have a document type with some complicated field mappings, and another
with same mappings plus one extra field.

So question: is there a way to inherit field mappings ? What options do I
have so I don't copy paste field mappings into each document type ?

--
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/2673c1ca-f4dd-4080-b0d4-ce220f0d9167%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Look into index templates with ordering. You can perhaps achieve what you
are looking for if you can restrict the match wildcard.

--
Ivan

On Wed, May 21, 2014 at 5:02 AM, Ben George bengeorge@gmail.com wrote:

What I want to do is similar to dynamic templateshttp://www.elasticsearch.org/guide/en/elasticsearch/guide/current/custom-dynamic-mapping.html#dynamic-templates,
except I want to match on type eg: "my_type*", so that my_type and
my_type_extra_field get the same field mappings.

On Wednesday, 21 May 2014 12:30:08 UTC+1, Ben George wrote:

I have a document type with some complicated field mappings, and another
with same mappings plus one extra field.

So question: is there a way to inherit field mappings ? What options do
I have so I don't copy paste field mappings into each document type ?

--
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/2673c1ca-f4dd-4080-b0d4-ce220f0d9167%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/2673c1ca-f4dd-4080-b0d4-ce220f0d9167%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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/CALY%3DcQDqCFSr%3Dw-q1ssE8%2Bv5rNQisvcX_q5sq-oG2sJqfNM2qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.