Class MatchOnlyTextProperty
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.MatchOnlyTextProperty
- All Implemented Interfaces:
PropertyVariant
,JsonpSerializable
@JsonpDeserializable public class MatchOnlyTextProperty extends java.lang.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:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MatchOnlyTextProperty.Builder
Builder forMatchOnlyTextProperty
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<MatchOnlyTextProperty>
_DESERIALIZER
Json deserializer forMatchOnlyTextProperty
-
Method Summary
Modifier and Type Method Description Property.Kind
_propertyKind()
Property variant kind.java.util.List<java.lang.String>
copyTo()
Allows you to copy the values of multiple fields into a group field, which can then be queried as a single field.java.util.Map<java.lang.String,Property>
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.java.util.Map<java.lang.String,java.lang.String>
meta()
Metadata about the field.static MatchOnlyTextProperty
of(java.util.function.Function<MatchOnlyTextProperty.Builder,ObjectBuilder<MatchOnlyTextProperty>> fn)
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
setupMatchOnlyTextPropertyDeserializer(ObjectDeserializer<MatchOnlyTextProperty.Builder> op)
java.lang.String
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(java.util.function.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
public final java.util.Map<java.lang.String,java.lang.String> meta()Metadata about the field.API name:
meta
-
copyTo
public final java.util.List<java.lang.String> 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
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupMatchOnlyTextPropertyDeserializer
protected static void setupMatchOnlyTextPropertyDeserializer(ObjectDeserializer<MatchOnlyTextProperty.Builder> op)
-