I am trying to build a synonym dictionary and write it to an index. Index is being created in the following way:
PUT /test_index
{
"settings": {
"index" : {
"analysis" : {
"filter" : {
"synonym_filter" : {
"type" : "synonym",
"synonyms_path" : "C:\\elasticsearch-7.1.0\\config\\synonym.txt",
"ignore_case": true
}
},
"analyzer" : {
"synonym_analyzer" : {
"tokenizer" : "standard",
"filter" : ["lowercase", "synonym_filter"]
}
}
}
}
},
"mappings": {
"properties": {
"note_text": {
"type": "text",
"analyzer": "synonym_analyzer"
}
}
}
}
However this gives me an error saying...
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "IOException while reading synonyms_path_path: C:\\elasticsearch-7.1.0\\config\\synonyms.txt"
}
],
"type": "illegal_argument_exception",
"reason": "IOException while reading synonyms_path_path: C:\\elasticsearch-7.1.0\\config\\synonyms.txt",
"caused_by": {
"type": "no_such_file_exception",
"reason": "C:\\elasticsearch-7.1.0\\config\\synonyms.txt"
}
},
"status": 400
}
Any help is appreciated!
