-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
I tired to create a SynonymTokenFilter for our project by using IndexSettingBuilder(), but always got a
"Filter name not found" error. We are still using ElasticSearch 0.9.10 version. Here are the codes:
Func<SynonymTokenFilter, SynonymTokenFilter> sFilter = (s) => s.Name("synonymTokenFilter").Synonyms(new List { "boldglo => bold glow" });
return new IndexSettingsBuilder()
.Analysis(als => als
.Filter(tokenFilter => tokenFilter.Synonym(sFilter))
.Analyzer(a => a
.Custom("synonymAnalyzer", custom => custom
.Tokenizer(DefaultTokenizers.whitespace)
.Filter(new List<string> { "sFilter" }))))
.BuildBeautified();
Metadata
Metadata
Assignees
Labels
No labels