Getting the following error when trying to index a document
{"_index":"test1","_type":"_doc","_id":"1000370980","status":400,"error":{"type":"illegal_argument_exception","reason":"cannot index term vector offsets when term vectors are not indexed (field=\"meta.contribGroup.contrib.lnameFname.suggest2._index_prefix\")"}}
Providing the mapping for the concerned field below
term vector supposed to configure only root field and shingle subfields, not the prefix but seems like Elasticsearch is trying to create a vector for _index_prefix field also for search-as-you-type field type.
PUT /vector-test/_doc/1'
{
"TestFieldName" : "Test1 Field Value"
}
Error Message
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "cannot index term vector offsets when term vectors are not indexed (field=\"TestFieldName.suggest2._index_prefix\")"
}
],
"type" : "illegal_argument_exception",
"reason" : "cannot index term vector offsets when term vectors are not indexed (field=\"TestFieldName.suggest2._index_prefix\")"
},
"status" : 400
}
As I mentioned the same test case working okay in v7.8.1. Not sure what I am missing.
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.