Hello,
Here's a gist that you can adapt for a specific index:
If you need to do this globally, you can add this line to your
elasticsearch.yml:
index.mapper.dynamic: false
Restart Elasticsearch, and it should work for all new indices.
Alternatively, you should be able to do it with a template that matches all
indices, or the index names your interested in.
Best regards,
Radu
http://sematext.com/ -- Elasticsearch -- Solr -- Lucene
On Fri, Feb 8, 2013 at 12:17 AM, T Vinod Gupta tvinod@readypulse.comwrote:
i wanted to disable dynamic mapping for my indices.. but it is somehow not
working for me.. i looked at the documentation and im still getting
confused.. tried couple of things and it didnt work.does anyone have a working example?
e.g., i tried the below and that didnt work -
{ "number_of_shards" : 2,
"mapper.dynamic" : false
}i looked at this link -
Elasticsearch Platform — Find real-time answers at scale | Elasticit doesnt really tell how to disable at root level.
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.
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.