# Synonyms returning no\_such\_file\_exception exceptin

**URL:** <https://discuss.elastic.co/t/synonyms-returning-no-such-file-exception-exceptin/364875>\
**Category:** Elasticsearch\
**Created:** [August 14, 2024, 1:54am UTC](https://discuss.elastic.co/t/synonyms-returning-no-such-file-exception-exceptin/364875 "2024-08-14T01:54:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryoga](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@ryoga](https://discuss.elastic.co/u/ryoga)\
**Post date:** [August 14, 2024, 1:54am UTC](https://discuss.elastic.co/t/synonyms-returning-no-such-file-exception-exceptin/364875/1 "2024-08-14T01:54:43Z")

</div>

Elasticsearch 8.15. Followed the instructions to upload synonyms file inside a zip file /dictionaries/synonyms.txt using custom bundles ( [Upload custom plugins and bundles | Elasticsearch Service Documentation | Elastic](https://www.elastic.co/guide/en/cloud/current/ec-custom-bundles.html)). I've tried the path

"synonyms\_path": "/app/config/dictionaries/synonyms.txt" also, same error.

{  
"error": {  
"root\_cause": [  
{  
"type": "illegal\_argument\_exception",  
"reason": "IOException while reading synonyms\_path\_path: /app/config/synonyms.txt"  
}  
],  
"type": "illegal\_argument\_exception",  
"reason": "IOException while reading synonyms\_path\_path: /app/config/synonyms.txt",  
"caused\_by": {  
"type": "no\_such\_file\_exception",  
"reason": "/app/config/synonyms.txt"  
}  
},  
"status": 400  
}

{  
"settings": {  
"analysis": {  
"analyzer": {  
"names\_analyzer": {  
"tokenizer": "standard",  
"filter": [  
"lowercase",  
"names\_synonyms"  
]  
}  
},  
"filter": {  
"names\_synonyms": {  
"type": "synonym",  
"synonyms\_path": "synonyms.txt",  
"updateable": true  
}  
}  
}  
}  
}
