I have an index in ES 5.6 that I want to move to ES 6.2, but I have some problems when trying to create this index in ES 6.2.
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "failed to build synonyms"
}
],
"type": "illegal_argument_exception",
"reason": "failed to build synonyms",
"caused_by": {
"type": "parse_exception",
"reason": "Invalid synonym rule at line 32",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "term: helse miljø og sikkerhet analyzed to a token (sikker) with position increment != 1 (got: 2)"
}
}
},
"status": 400
}
This is my synonym filter:
"synonym_no": {
"type": "synonym",
"synonyms": [
...
"hms, helse miljø og sikkerhet",
...
]
}
I have a lot more synonyms than this, but why is this causing an issue? It worked fine in 5.6.