Hi List,
I'm trying to update a mapping for one of my types using the put mapping
API [1]
Precisely I'd like to set for some objects the "dynamic" property changing
it from false to strict
I'm executing the following
curl -X PUT 'http://localhost:9200/my_index '
curl -X PUT -d
'{"my_type":{"dynamic":"false","properties":{"fields":{"type":"string"}}}}'
'http://localhost:9200/my_index/my_type/_mapping '
curl -X PUT -d
'{"my_type":{"dynamic":"strict","properties":{"fields":{"type":"string"}}}}'
'http://localhost:9200/my_index/my_type/_mapping '
but at the end when I check the resulting mapping
curl 'http://localhost:9200/my_index/my_type/_mapping '
{"my_type":{"dynamic":"false","properties":{"fields":{"type":"string"}}}
I would expect to see the dynamic attribute changed to strict, what am I
doing wrong?
[1] http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/
Thanks in advance for your help
Paolo
--
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 .
For more options, visit https://groups.google.com/groups/opt_out .
spinscale
(Alexander Reelsen)
July 26, 2013, 6:03am
2
Hey,
is it possible, that you are hitting this issue
opened 08:56PM - 24 Jul 13 UTC
closed 08:57PM - 24 Jul 13 UTC
>enhancement
v1.0.0.Beta1
v0.90.3
Allow to update / merge in the dynamic flag on object or the root object mapper,… meaning that it can be changed dynamically using the update mapping API.
Setting the dynamic setting during runtime will be possible in the next
version.
--Alex
On Thu, Jul 25, 2013 at 1:50 PM, Paolo Negri hungryblank@gmail.com wrote:
Hi List,
I'm trying to update a mapping for one of my types using the put mapping
API [1]
Precisely I'd like to set for some objects the "dynamic" property changing
it from false to strict
I'm executing the following
curl -X PUT 'http://localhost:9200/my_index '
curl -X PUT -d
'{"my_type":{"dynamic":"false","properties":{"fields":{"type":"string"}}}}'
'http://localhost:9200/my_index/my_type/_mapping '
curl -X PUT -d
'{"my_type":{"dynamic":"strict","properties":{"fields":{"type":"string"}}}}'
'http://localhost:9200/my_index/my_type/_mapping '
but at the end when I check the resulting mapping
curl 'http://localhost:9200/my_index/my_type/_mapping '
{"my_type":{"dynamic":"false","properties":{"fields":{"type":"string"}}}
I would expect to see the dynamic attribute changed to strict, what am I
doing wrong?
[1]
Elasticsearch Platform — Find real-time answers at scale | Elastic
Thanks in advance for your help
Paolo
--
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 .
For more options, visit https://groups.google.com/groups/opt_out .
--
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 .
For more options, visit https://groups.google.com/groups/opt_out .