Interface ICommonGramsTokenFilter
Token filter that generates bigrams for frequently occuring terms. Single terms are still indexed.
Note, common_words or common_words_path field is required.
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface ICommonGramsTokenFilter : ITokenFilter
Properties
| Edit this page View SourceCommonWords
A list of common words to use.
Declaration
[DataMember(Name = "common_words")]
IEnumerable<string> CommonWords { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
CommonWordsPath
A path (either relative to config location, or absolute) to a list of common words.
Declaration
[DataMember(Name = "common_words_path")]
string CommonWordsPath { get; set; }
Property Value
Type | Description |
---|---|
string |
IgnoreCase
If true, common words matching will be case insensitive.
Declaration
[DataMember(Name = "ignore_case")]
bool? IgnoreCase { get; set; }
Property Value
Type | Description |
---|---|
bool? |
QueryMode
Generates bigrams then removes common words and single terms followed by a common word.
Declaration
[DataMember(Name = "query_mode")]
bool? QueryMode { get; set; }
Property Value
Type | Description |
---|---|
bool? |