I creating index using Bulk api from the above API references. where my type has a field with text which contains "." and alphanumeric. so want to make this field not_analyzed.
@tdasch below error is coming if index is not created and i am trying to put the mapping.
Error: [index_not_found_exception] no such index, with { resource.type="index_or_alias" & resource.id="my_index_name" & index_uuid="na" & index="my_index_name" } :: {"path":"/my_index_name/_mapping/my_type","query":{},"body":"{"properties":{"code":{"type":"keyword","index":"not_analyzed"},"fcode":{"fielddata":true,"fields":{"raw":{"index":"not_analyzed","type":"string"}},"type":"string"},"title":{"fielddata":true,"fields":{"raw":{"index":"not_analyzed","type":"string"}},"type":"string"},"sfcode":{"fielddata":true,"fields":{"raw":{"index":"not_analyzed","type":"string"}},"type":"string"},"cLCode":{"fielddata":true,"fields":{"raw":{"index":"not_analyzed","type":"string"}},"type":"string"}}}","stCode":404,"response":"{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"my_index_name","index_uuid":"na","index":"my_index_name"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"my_index_name","index_uuid":"na","index":"my_index_name"},"status":404}"}
Even if i insert all records using the "BULK API" then "Code" field is set as text type and later it not allowing to change into type "keyword" by put mapping.
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.