Class CommonGramsTokenFilter
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.TokenFilterBase
co.elastic.clients.elasticsearch._types.analysis.CommonGramsTokenFilter
- All Implemented Interfaces:
TokenFilterDefinitionVariant,JsonpSerializable
@JsonpDeserializable
public class CommonGramsTokenFilter
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<CommonGramsTokenFilter>Json deserializer forCommonGramsTokenFilter -
Method Summary
Modifier and TypeMethodDescriptionTokenFilterDefinition variant kind.A list of tokens.final StringPath to a file containing a list of tokens.final BooleanIftrue, matches for common words matching are case-insensitive.static CommonGramsTokenFilterfinal BooleanIftrue, the filter excludes the following tokens from the output: Unigrams for common words Unigrams for terms followed by common words Defaults tofalse.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods 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 forCommonGramsTokenFilter
-
-
Method Details
-
of
public static CommonGramsTokenFilter of(Function<CommonGramsTokenFilter.Builder, ObjectBuilder<CommonGramsTokenFilter>> fn) -
_tokenFilterDefinitionKind
TokenFilterDefinition variant kind.- Specified by:
_tokenFilterDefinitionKindin interfaceTokenFilterDefinitionVariant
-
commonWords
A list of tokens. The filter generates bigrams for these tokens. Either this or thecommon_words_pathparameter is required.API name:
common_words -
commonWordsPath
Path to a file containing a list of tokens. The filter generates bigrams for these tokens. This path must be absolute or relative to theconfiglocation. The file must be UTF-8 encoded. Each token in the file must be separated by a line break. Either this or thecommon_wordsparameter is required.API name:
common_words_path -
ignoreCase
Iftrue, matches for common words matching are case-insensitive. Defaults tofalse.API name:
ignore_case -
queryMode
Iftrue, the filter excludes the following tokens from the output:- Unigrams for common words
- Unigrams for terms followed by common words Defaults to
false. We recommend enabling this parameter for search analyzers.
API name:
query_mode -
serializeInternal
- Overrides:
serializeInternalin classTokenFilterBase
-
setupCommonGramsTokenFilterDeserializer
protected static void setupCommonGramsTokenFilterDeserializer(ObjectDeserializer<CommonGramsTokenFilter.Builder> op)
-