Class KeywordMarkerTokenFilterDescriptor
Protects words from being modified by stemmers. Must be placed before any stemming filters.
Inheritance
KeywordMarkerTokenFilterDescriptor
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class KeywordMarkerTokenFilterDescriptor : TokenFilterDescriptorBase<KeywordMarkerTokenFilterDescriptor, IKeywordMarkerTokenFilter>, IDescriptor, IKeywordMarkerTokenFilter, ITokenFilter
Properties
| Edit this page View SourceType
Declaration
protected override string Type { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
| Edit this page View SourceIgnoreCase(bool?)
Set to true to lower case all words first. Defaults to false.
Declaration
public KeywordMarkerTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true)
Parameters
| Type | Name | Description |
|---|---|---|
| bool? | ignoreCase |
Returns
| Type | Description |
|---|---|
| KeywordMarkerTokenFilterDescriptor |
Keywords(IEnumerable<string>)
A list of words to use.
Cannot specify both KeywordsPattern and Keywords or KeywordsPath
Declaration
public KeywordMarkerTokenFilterDescriptor Keywords(IEnumerable<string> keywords)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | keywords |
Returns
| Type | Description |
|---|---|
| KeywordMarkerTokenFilterDescriptor |
Keywords(params string[])
A list of words to use.
Cannot specify both KeywordsPattern and Keywords or KeywordsPath
Declaration
public KeywordMarkerTokenFilterDescriptor Keywords(params string[] keywords)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | keywords |
Returns
| Type | Description |
|---|---|
| KeywordMarkerTokenFilterDescriptor |
KeywordsPath(string)
A path (either relative to config location, or absolute) to a list of words.
Cannot specify both KeywordsPattern and Keywords or KeywordsPath
Declaration
public KeywordMarkerTokenFilterDescriptor KeywordsPath(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path |
Returns
| Type | Description |
|---|---|
| KeywordMarkerTokenFilterDescriptor |
KeywordsPattern(string)
A regular expression pattern to match against words in the text.
Cannot specify both KeywordsPattern and Keywords or KeywordsPath
Declaration
public KeywordMarkerTokenFilterDescriptor KeywordsPattern(string pattern)
Parameters
| Type | Name | Description |
|---|---|---|
| string | pattern |
Returns
| Type | Description |
|---|---|
| KeywordMarkerTokenFilterDescriptor |