I want to create a template using the PutIndexTemplateRequest API.
But when the template was created, I found that the mapping.type was "_doc".
I try to add type in the mapping json string as follows:
Then I got a error:
MapperParsingException: Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [imsiimei : {properties={ADDRESS={type=text}, NAME={type=keyword}, AGE={type=keyword}}}]
How can I customize the type name using JAVA Template Api?
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.