If the index 'test' and/or the mapping 'type1', don't exist in my server,
it is automatically created
Then, an item with id '1' is indexed with { "field1" : "value1" } source.
How could I have an error if the index and/or the mapping don't exist ? In
other words, how could I tell the server not to create automatically the
index/mapping if the don't exist ?
How could I have an error if the index and/or the mapping don't
exist ? In other words, how could I tell the server not to create
automatically the index/mapping if the don't exist ?
If the index 'test' and/or the mapping 'type1', don't exist in my server,
it is automatically created
Then, an item with id '1' is indexed with { "field1" : "value1" } source.
How could I have an error if the index and/or the mapping don't exist ? In
other words, how could I tell the server not to create automatically the
index/mapping if the don't exist ?
Pierre
Hi Pierre,
You can disallow dynamic mappings using this setting in
elasticsearch.yml:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.