Class Term
java.lang.Object
co.elastic.clients.elasticsearch.core.termvectors.Term
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class Term extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Term.Builder
Builder forTerm
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Term>
_DESERIALIZER
Json deserializer forTerm
-
Method Summary
Modifier and Type Method Description java.lang.Integer
docFreq()
API name:doc_freq
static Term
of(java.util.function.Function<Term.Builder,ObjectBuilder<Term>> fn)
java.lang.Double
score()
API name:score
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
setupTermDeserializer(ObjectDeserializer<Term.Builder> op)
int
termFreq()
Required - API name:term_freq
java.util.List<Token>
tokens()
Required - API name:tokens
java.lang.Integer
ttf()
API name:ttf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forTerm
-
-
Method Details
-
of
-
docFreq
@Nullable public final java.lang.Integer docFreq()API name:doc_freq
-
score
@Nullable public final java.lang.Double score()API name:score
-
termFreq
public final int termFreq()Required - API name:term_freq
-
tokens
Required - API name:tokens
-
ttf
@Nullable public final java.lang.Integer ttf()API name:ttf
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupTermDeserializer
-