Class StopTokenFilter
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase
co.elastic.clients.elasticsearch._types.analysis.StopTokenFilter
- All Implemented Interfaces:
TokenFilterDefinitionVariant,JsonpSerializable
@JsonpDeserializable
public class StopTokenFilter
extends TokenFilterBase
implements TokenFilterDefinitionVariant
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase
TokenFilterBase.AbstractBuilder<BuilderT extends TokenFilterBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<StopTokenFilter>Json deserializer forStopTokenFilter -
Method Summary
Modifier and TypeMethodDescriptionTokenFilterDefinition variant kind.final BooleanIftrue, stop word matching is case insensitive.static StopTokenFilterfinal BooleanIftrue, the last token of a stream is removed if it’s a stop word.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidLanguage value, such as_arabic_or_thai_.final StringPath to a file that contains a list of stop words to remove.Methods inherited from class co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase
serialize, setupTokenFilterBaseDeserializer, toString, versionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.json.JsonpSerializable
serializeMethods inherited from interface co.elastic.clients.elasticsearch._types.analysis.TokenFilterDefinitionVariant
_toTokenFilterDefinition
-
Field Details
-
_DESERIALIZER
Json deserializer forStopTokenFilter
-
-
Method Details
-
of
public static StopTokenFilter of(Function<StopTokenFilter.Builder, ObjectBuilder<StopTokenFilter>> fn) -
_tokenFilterDefinitionKind
TokenFilterDefinition variant kind.- Specified by:
_tokenFilterDefinitionKindin interfaceTokenFilterDefinitionVariant
-
ignoreCase
Iftrue, stop word matching is case insensitive. For example, iftrue, a stop word of the matches and removesThe,THE, orthe. Defaults tofalse.API name:
ignore_case -
removeTrailing
Iftrue, the last token of a stream is removed if it’s a stop word. Defaults totrue.API name:
remove_trailing -
stopwords
Language value, such as_arabic_or_thai_. Defaults to_english_.API name:
stopwords -
stopwordsPath
Path to a file that contains a list of stop words to remove. This path must be absolute or relative to theconfiglocation, and the file must be UTF-8 encoded. Each stop word in the file must be separated by a line break.API name:
stopwords_path -
serializeInternal
- Overrides:
serializeInternalin classTokenFilterBase
-
setupStopTokenFilterDeserializer
protected static void setupStopTokenFilterDeserializer(ObjectDeserializer<StopTokenFilter.Builder> op)
-