Hi,
I'm using ES 5.5 and I'm unable to put some words into the synonyms file (støvmaske, buntebånd, etc).
When putting the filter
{
"settings": {
"analysis": {
"analyzer": {
"synonym_analyzer": {
"type": "custom",
"filter": ["lowercase", "asciifolding", "trim", "my_synonyms"],
"tokenizer" : "standard"
}
},
"filter": {
"my_synonyms": {
"type": "synonym",
"synonyms_path": "analysis/Norway/synonyms.txt",
"tokenizer" : "standard"
}
}
}
}
}
I'm getting the response:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "failed to build synonyms"
}
],
"type": "illegal_argument_exception",
"reason": "failed to build synonyms",
"caused_by": {
"type": "malformed_input_exception",
"reason": "Input length = 1"
}
},
"status": 400
}
Those settings are fine when synonym file contains "standard" words.
What am I missing?