33
44namespace Nest
55{
6- /// <summary>
7- /// Token filters that allow to decompose compound words.
8- /// </summary>
9- public abstract class CompoundWordTokenFilter : TokenFilterBase
10- {
11- protected CompoundWordTokenFilter ( string type )
12- : base ( type )
6+ /// <summary>
7+ /// Token filters that allow to decompose compound words.
8+ /// </summary>
9+ public abstract class CompoundWordTokenFilter : TokenFilterBase
1310 {
14- }
11+ protected CompoundWordTokenFilter ( string type )
12+ : base ( type )
13+ {
14+ }
15+
16+ /// <summary>
17+ /// A list of words to use.
18+ /// </summary>
19+ [ JsonProperty ( "word_list" ) ]
20+ public IEnumerable < string > WordList { get ; set ; }
21+
22+ /// <summary>
23+ /// A path (either relative to config location, or absolute) to a list of words.
24+ /// </summary>
25+ [ JsonProperty ( "word_list_path" ) ]
26+ public string WordListPath { get ; set ; }
1527
16- [ JsonProperty ( "word_list" ) ]
17- public IEnumerable < string > WordList { get ; set ; }
28+ /// <summary>
29+ /// Minimum word size.
30+ /// </summary>
31+ [ JsonProperty ( "min_word_size" ) ]
32+ public int MinWordSize { get ; set ; }
1833
19- [ JsonProperty ( "word_list_path" ) ]
20- public string WordListPath { get ; set ; }
21- }
22- }
34+ /// <summary>
35+ /// Minimum subword size.
36+ /// </summary>
37+ [ JsonProperty ( "min_subword_size" ) ]
38+ public int MinSubwordSize { get ; set ; }
39+
40+ /// <summary>
41+ /// Maximum subword size.
42+ /// </summary>
43+ [ JsonProperty ( "max_subword_size" ) ]
44+ public int MaxSubwordSize { get ; set ; }
45+
46+ /// <summary>
47+ /// Only matching the longest.
48+ /// </summary>
49+ [ JsonProperty ( "only_longest_match" ) ]
50+ public bool OnlyLongestMatch { get ; set ; }
51+ }
52+ }
0 commit comments