Dynamic template does not apply to existing fields

I have some scanerios of using dynamic template:

  1. create a new index and index some records using the default setting

  2. apply a new dynamic template on some of existing fields using the
    put mapping API
    some details about my dynamic template:

a) reindex the existing records and the existing matched fields
don't have the dynamic template applied
b) index some new records and the matched fields still cannot have
the dynamic template applied
c) reindex the records, but just slightly change the field name (but
matched with the dynamic template) and now the fields can have the
dynamic template applied

So, the dynamic template cannot change the existing fields?

Thanks,
Wing

Dynamic template changes only apply to new indices.

--
Ivan

On Thu, Jun 7, 2012 at 8:13 PM, Yiu Wing TSANG ywtsang@gmail.com wrote:

I have some scanerios of using dynamic template:

  1. create a new index and index some records using the default setting

  2. apply a new dynamic template on some of existing fields using the
    put mapping API
    some details about my dynamic template:

a) reindex the existing records and the existing matched fields
don't have the dynamic template applied
b) index some new records and the matched fields still cannot have
the dynamic template applied
c) reindex the records, but just slightly change the field name (but
matched with the dynamic template) and now the fields can have the
dynamic template applied

So, the dynamic template cannot change the existing fields?

Thanks,
Wing