Interface IStopTokenFilter
A token filter of type stop that removes stop words from token streams.
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IStopTokenFilter : ITokenFilter
Properties
| Edit this page View SourceIgnoreCase
Set to true to lower case all words first. Defaults to false.
Declaration
[DataMember(Name = "ignore_case")]
bool? IgnoreCase { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RemoveTrailing
Set to false in order to not ignore the last term of a search if it is a stop word. This is very useful for the completion suggester as a query like green a can be extended to green apple even though you remove stop words in general. Defaults to true.
Declaration
[DataMember(Name = "remove_trailing")]
bool? RemoveTrailing { get; set; }
Property Value
Type | Description |
---|---|
bool? |
StopWords
A list of stop words to use. Defaults to _english_
stop words.
Declaration
[DataMember(Name = "stopwords")]
StopWords StopWords { get; set; }
Property Value
Type | Description |
---|---|
StopWords |
StopWordsPath
A path (either relative to config location, or absolute) to a stopwords file configuration. Each stop word should be in its own "line" (separated by a line break). The file must be UTF-8 encoded.
Declaration
[DataMember(Name = "stopwords_path")]
string StopWordsPath { get; set; }
Property Value
Type | Description |
---|---|
string |