diff --git a/src/Nest/Domain/Analysis/TokenFilter/CompoundWordTokenFilter.cs b/src/Nest/Domain/Analysis/TokenFilter/CompoundWordTokenFilter.cs index 6c0e9bf24ca..33f0eee4ac7 100644 --- a/src/Nest/Domain/Analysis/TokenFilter/CompoundWordTokenFilter.cs +++ b/src/Nest/Domain/Analysis/TokenFilter/CompoundWordTokenFilter.cs @@ -3,20 +3,50 @@ namespace Nest { - /// - /// Token filters that allow to decompose compound words. - /// - public abstract class CompoundWordTokenFilter : TokenFilterBase - { - protected CompoundWordTokenFilter(string type) - : base(type) + /// + /// Token filters that allow to decompose compound words. + /// + public abstract class CompoundWordTokenFilter : TokenFilterBase { - } + protected CompoundWordTokenFilter(string type) + : base(type) + { + } + + /// + /// A list of words to use. + /// + [JsonProperty("word_list")] + public IEnumerable WordList { get; set; } + + /// + /// A path (either relative to config location, or absolute) to a list of words. + /// + [JsonProperty("word_list_path")] + public string WordListPath { get; set; } - [JsonProperty("word_list")] - public IEnumerable WordList { get; set; } + /// + /// Minimum word size. + /// + [JsonProperty("min_word_size")] + public int MinWordSize { get; set; } - [JsonProperty("word_list_path")] - public string WordListPath { get; set; } - } -} \ No newline at end of file + /// + /// Minimum subword size. + /// + [JsonProperty("min_subword_size")] + public int MinSubwordSize { get; set; } + + /// + /// Maximum subword size. + /// + [JsonProperty("max_subword_size")] + public int MaxSubwordSize { get; set; } + + /// + /// Only matching the longest. + /// + [JsonProperty("only_longest_match")] + public bool OnlyLongestMatch { get; set; } + } +}