Class MatchOnlyTextProperty
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.MatchOnlyTextProperty
- All Implemented Interfaces:
PropertyVariant
,JsonpSerializable
@JsonpDeserializable
public class MatchOnlyTextProperty
extends Object
implements PropertyVariant, JsonpSerializable
A variant of text that trades scoring and efficiency of positional queries
for space efficiency. This field effectively stores data the same way as a
text field that only indexes documents (index_options: docs) and disables
norms (norms: false). Term queries perform as fast if not faster as on text
fields, however queries that need positions such as the match_phrase query
perform slower as they need to look at the _source document to verify whether
a phrase matches. All queries return constant scores that are equal to 1.0.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<MatchOnlyTextProperty>
Json deserializer forMatchOnlyTextProperty
-
Method Summary
Modifier and TypeMethodDescriptionProperty variant kind.copyTo()
Allows you to copy the values of multiple fields into a group field, which can then be queried as a single field.fields()
Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.meta()
Metadata about the field.static MatchOnlyTextProperty
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch._types.mapping.PropertyVariant
_toProperty
-
Field Details
-
_DESERIALIZER
Json deserializer forMatchOnlyTextProperty
-
-
Method Details
-
of
public static MatchOnlyTextProperty of(Function<MatchOnlyTextProperty.Builder, ObjectBuilder<MatchOnlyTextProperty>> fn) -
_propertyKind
Property variant kind.- Specified by:
_propertyKind
in interfacePropertyVariant
-
fields
Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.API name:
fields
-
meta
Metadata about the field.API name:
meta
-
copyTo
Allows you to copy the values of multiple fields into a group field, which can then be queried as a single field.API name:
copy_to
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupMatchOnlyTextPropertyDeserializer
protected static void setupMatchOnlyTextPropertyDeserializer(ObjectDeserializer<MatchOnlyTextProperty.Builder> op)
-