Synonym filepath and synonym list at the same time?

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)))))));

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