# Synonym filepath and synonym list at the same time?

**URL:** <https://discuss.elastic.co/t/synonym-filepath-and-synonym-list-at-the-same-time/75905>\
**Category:** Elasticsearch\
**Created:** [February 21, 2017, 3:40pm UTC](https://discuss.elastic.co/t/synonym-filepath-and-synonym-list-at-the-same-time/75905 "2017-02-21T15:40:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christer.n](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christer.n/32/15539_2.png) [@christer.n](https://discuss.elastic.co/u/christer.n)\
**Post date:** [February 21, 2017, 3:40pm UTC](https://discuss.elastic.co/t/synonym-filepath-and-synonym-list-at-the-same-time/75905/1 "2017-02-21T15:40:39Z")

</div>

Hi, is it possible to use the "Synonyms" token filters, and a synonyms filepath at the same time?  
Seems like after adding the "filepath", my custom list of synonyms doesnt work anymore.

Use case:  
Got an official list of synonyms loaded trough filepath

Custom synonyms:  
Used for common misspellings

My current implementation:

```
response = client.UpdateIndexSettings(client.IndexName, uix => uix
            .IndexSettings(ixs => ixs
                .Analysis(ana => ana
                    .TokenFilters(tf => tf
                        .Synonym("synonyms", syn => syn
                            .Synonyms(GetSynonyms(client)).SynonymsPath("mylanguage.txt")))
                    .Analyzers(a => a
                        .Custom("default", cad => cad
                            .Tokenizer("standard")
                            .CharFilters("html_strip")
                            .Filters(GetFilters(language)))))));
```

---

<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 21, 2017, 3:40pm UTC](https://discuss.elastic.co/t/synonym-filepath-and-synonym-list-at-the-same-time/75905/2 "2017-03-21T15:40:57Z")

</div>

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