I am inserting documents to this a index with Java via: IndexResponse response = client.prepareIndex("anna-test-index", "test").setSource(insertObject).setId("eins").setPipeline("monthlyindex").get();
As far as I can see the index for this month has been created automatically. But unfortunately I need a special index mapping for this index. Am I able to specify this mapping somehow in the processor? Or how can I do it?
I am using elasticsearch 5.2.2.
Anna you should be using the Index Template feature as my colegue Luiz refered, but just keep in mind that the example he used is the syntax for 6.0. The syntax for Index Template for 5.x is slightly different, you should be using the attribute template instead of index_patterns (more details here)
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.