Just Pushed: Dynamic Template Mapping Definitions

Hey,

I've heard this feature requested by many users, so here it is:
http://github.com/elasticsearch/elasticsearch/issues/issue/397. Hopefully it
answers what people were after (for example, the ability to automatically
define multi_field mappings based on a pattern or by default).

-shay.banon

Hey Shay,

Thanks for the feature, that's exactly what i needed.

My problem is that i cant get it to work :frowning: I need to store all
dynamic fields by default ("store" : "yes") and the mapping i am
trying to use is as follows:

{
"user" : {"dynamic_templates":[{"match":"*","mapping":
{"store":"yes"}}]}
}

When i later query the _mapping of the index, all the dynamic fields
are "store" : "no".

The version I am using is from git: elasticsearch/0.12.0-SNAPSHOT/
2010-10-03T19:28

On Oct 1, 4:57 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Hey,

I've heard this feature requested by many users, so here it is:Mapper: Dynamic Template Support · Issue #397 · elastic/elasticsearch · GitHub. Hopefully it
answers what people were after (for example, the ability to automatically
define multi_field mappings based on a pattern or by default).

-shay.banon

Hey,

Yea, completely generic mappings is something that I just added support
for. Also adding the ability to refer to the dynamic type "guessed" based on
the type introduced for simple generic cross typed multi_field mappings.
Updated the issue with an example:
Issues · elastic/elasticsearch · GitHub.

In short, give laster master a go, see if it works.

-shay.banon

On Mon, Oct 4, 2010 at 12:20 AM, Eugene glum.ua@gmail.com wrote:

Hey Shay,

Thanks for the feature, that's exactly what i needed.

My problem is that i cant get it to work :frowning: I need to store all
dynamic fields by default ("store" : "yes") and the mapping i am
trying to use is as follows:

{
"user" : {"dynamic_templates":[{"match":"*","mapping":
{"store":"yes"}}]}
}

When i later query the _mapping of the index, all the dynamic fields
are "store" : "no".

The version I am using is from git: elasticsearch/0.12.0-SNAPSHOT/
2010-10-03T19:28

On Oct 1, 4:57 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

Hey,

I've heard this feature requested by many users, so here it is:
Mapper: Dynamic Template Support · Issue #397 · elastic/elasticsearch · GitHub. Hopefully
it
answers what people were after (for example, the ability to automatically
define multi_field mappings based on a pattern or by default).

-shay.banon