Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhoneticTokenFilter.cs - Added replace and encoder JSON properties #301

Merged
merged 1 commit into from
Jul 12, 2013

Conversation

salyh
Copy link

@salyh salyh commented Jul 2, 2013

Looks like encoder and replace props are missing: https://github.com/elasticsearch/elasticsearch-analysis-phonetic/blob/master/README.md

Including this makes subclassing superfluously.

Sample usage:

var settings = new IndexSettings();

settings.Analysis.Analyzers.Add("phoneticanalyzer", new CustomAnalyzer() { Tokenizer = "standard", Filter = new string[] { "standard", "lowercase", "metaphonetf" } });

settings.Analysis.TokenFilters.Add("metaphonetf", new PhoneticTokenFilter() { Encoder = "doublemetaphone", Replace = false });

Mpdreamz added a commit that referenced this pull request Jul 12, 2013
PhoneticTokenFilter.cs - Added replace and encoder JSON properties
@Mpdreamz Mpdreamz merged commit 260a865 into elastic:master Jul 12, 2013
@Mpdreamz
Copy link
Member

Thank you for this, sorry it took a while to merge 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants