# Custom Bundle - synonyms\_path not working

**URL:** <https://discuss.elastic.co/t/custom-bundle-synonyms-path-not-working/220209>\
**Category:** Elasticsearch\
**Created:** [February 20, 2020, 2:52pm UTC](https://discuss.elastic.co/t/custom-bundle-synonyms-path-not-working/220209 "2020-02-20T14:52:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![acuitymd](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@acuitymd](https://discuss.elastic.co/u/acuitymd)\
**Post date:** [February 20, 2020, 2:52pm UTC](https://discuss.elastic.co/t/custom-bundle-synonyms-path-not-working/220209/1 "2020-02-20T14:52:47Z")

</div>

Hi,

I'm trying to upload custom bundles of synonym files to my cluster, and I've followed these instructions to a T.

[https://www.elastic.co/guide/en/cloud/current/ec-custom-bundles.html](https://www.elastic.co/guide/en/cloud/current/ec-custom-bundles.html)

I have a zip file with the structure  
dictionaries  
state\_synonyms.txt

And index settings:  
```  
{  
"index": {  
"analysis": {  
"filter": {  
"state-synonym": {  
"type": "synonym",  
"synonyms\_path": "state\_synonyms.txt"  
}  
},  
"analyzer": {  
"state-synonym": {  
"filter": ["state-synonym", "lowercase"],  
"tokenizer": "edge\_ngram"  
}  
}  
}  
}  
}

```auto

But when I try to create an index template with those settings, I get 

[illegal_argument_exception] IOException while reading synonyms_path_path: /app/config/state_synonyms.txt

I've made sure that the custom plugin is enabled on my cluster, set it to "A bundle containing a dictionary or script" and even restarted the cluster to ensure it is loaded.

Can someone assist? Is there a specific path I need to use for my custom plugin?

Thanks
```

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [February 22, 2020, 2:53am UTC](https://discuss.elastic.co/t/custom-bundle-synonyms-path-not-working/220209/2 "2020-02-22T02:53:34Z")

</div>

Hi @acuitymd - Welcome to our community forums!

Is your cluster hosted on Elasticsearch Service or is it an on-prem cluster?

---

<div class="post-metadata">

**Author:** ![acuitymd](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@acuitymd](https://discuss.elastic.co/u/acuitymd)\
**Post date:** [February 22, 2020, 3:04am UTC](https://discuss.elastic.co/t/custom-bundle-synonyms-path-not-working/220209/3 "2020-02-22T03:04:57Z")

</div>

Hey Romain,

Thanks. Elasticsearch Service aka “Elastic Cloud”

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [February 22, 2020, 3:13am UTC](https://discuss.elastic.co/t/custom-bundle-synonyms-path-not-working/220209/4 "2020-02-22T03:13:55Z")

</div>

Can you send to us the entire error message? I found a similar issue reported in this [Discuss post](https://discuss.elastic.co/t/ioexception-while-reading-synonyms-path-path-synonym-token-filter-configuration/197764). I am not sure if could be related or not - but it might be worth checking it.

---

<div class="post-metadata">

**Author:** ![acuitymd](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@acuitymd](https://discuss.elastic.co/u/acuitymd)\
**Post date:** [February 28, 2020, 12:46am UTC](https://discuss.elastic.co/t/custom-bundle-synonyms-path-not-working/220209/5 "2020-02-28T00:46:06Z")

</div>

Hi Romain,

That is the entire error message.

 ![Screen Shot 2020-02-27 at 4.44.18 PM](https://us1.discourse-cdn.com/elastic/original/3X/1/3/130dfbf65951e5a288a9e7e31d10400c585cb060.png)

I'm not sure that other post is relevant, since it looks like it's being hosted locally on windows. I, as mentioned before, am using Elasticsearch Service.

Cheers,  
Robert

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [March 1, 2020, 1:57am UTC](https://discuss.elastic.co/t/custom-bundle-synonyms-path-not-working/220209/6 "2020-03-01T01:57:28Z")

</div>

@acuitymd - I was referring to the file extension part (mentioned in the [Discuss topic](https://discuss.elastic.co/t/ioexception-while-reading-synonyms-path-path-synonym-token-filter-configuration/197764) shared earlier on). If there is no confidential information, would it be ok to share the ZIP file that you uploaded in your ESS deployment? If you could also send me a private message with the deployment ID - I might be able to look at some backend logs as well.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 29, 2020, 1:57am UTC](https://discuss.elastic.co/t/custom-bundle-synonyms-path-not-working/220209/7 "2020-03-29T01:57:30Z")

</div>

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