Analyzer [suggester] not found for field [mark_text]


(Vishwas Jadav) #1

I have this index settings :
{
"phrase_suggester" : {
"aliases" : { },
"mappings" : { },
"settings" : {
"index" : {
"number_of_shards" : "5",
"provided_name" : "phrase_suggester",
"creation_date" : "1527851987771",
"analysis" : {
"filter" : {
"shingle" : {
"max_shingle_size" : "3",
"min_shingle_size" : "2",
"type" : "shingle"
}
},
"normalizer" : {
"lowercase_normalizer" : {
"filter" : [
"lowercase"
],
"type" : "custom",
"char_filter" : [ ]
}
},
"analyzer" : {
"suggester" : {
"filter" : [
"shingle",
"standard"
],
"type" : "custom",
"tokenizer" : "standard"
}
}
},
"number_of_replicas" : "1",
"uuid" : "cQdyS2zGQ4anbug6ZwEDkg",
"version" : {
"created" : "6020499"
}
}
}
}
}

And mapping like this (in php array Sorry for that):
{
"id": {
"type": "integer"
},
"did": {
"type": "integer"
},
"fil_date": {
"type": "double"
},
"file_nr": {
"type": "double"
},
"mark_text": {
"type": "text",
"analyzer": "suggester"
},
"markdescr": {
"type": "text"
},
"markdescrtext": {
"type": "text"
},
"statusapplication": {
"type": "text"
},
"mark_type_id": {
"type": "text"
},
"niceclmain": {
"type": "double"
},
"owname": {
"type": "text",
"analyzer": "suggester"
}
}

when try to put mappings I have this error :
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"analyzer [suggester] not found for field [mark_text]"}],"type":"mapper_parsing_exception","reason":"analyzer [suggester] not found for field [mark_text]"},"status":400}


(Vishwas Jadav) #2

I found my fault I forgot to change my index when trying to put mappings.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.