Class PatternAnalyzer
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.PatternAnalyzer
- All Implemented Interfaces:
AnalyzerVariant,JsonpSerializable
@JsonpDeserializable
public class PatternAnalyzer
extends Object
implements AnalyzerVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PatternAnalyzer>Json deserializer forPatternAnalyzer -
Method Summary
Modifier and TypeMethodDescriptionAnalyzer variant kind.final Stringflags()Java regular expression flags.final BooleanShould terms be lowercased or not.static PatternAnalyzerfinal Stringpattern()A Java regular expression.rebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidA pre-defined stop words list like_english_or an array containing a list of stop words.final StringThe path to a file containing stop words.toString()final Stringversion()Deprecated.7.14.0Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.analysis.AnalyzerVariant
_toAnalyzer
-
Field Details
-
_DESERIALIZER
Json deserializer forPatternAnalyzer
-
-
Method Details
-
of
public static PatternAnalyzer of(Function<PatternAnalyzer.Builder, ObjectBuilder<PatternAnalyzer>> fn) -
_analyzerKind
Analyzer variant kind.- Specified by:
_analyzerKindin interfaceAnalyzerVariant
-
version
Deprecated.7.14.0API name:version -
flags
Java regular expression flags. Flags should be pipe-separated, eg "CASE_INSENSITIVE|COMMENTS".API name:
flags -
lowercase
Should terms be lowercased or not. Defaults totrue.API name:
lowercase -
pattern
A Java regular expression. Defaults to\W+.API name:
pattern -
stopwords
A pre-defined stop words list like_english_or an array containing a list of stop words. Defaults to_none_.API name:
stopwords -
stopwordsPath
The path to a file containing stop words.API name:
stopwords_path -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
PatternAnalyzer.Builderinitialized with field values of this instance
-
setupPatternAnalyzerDeserializer
protected static void setupPatternAnalyzerDeserializer(ObjectDeserializer<PatternAnalyzer.Builder> op)
-