Class MoreLikeThisQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.MoreLikeThisQuery
- All Implemented Interfaces:
QueryVariant
,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<MoreLikeThisQuery>
Json deserializer forMoreLikeThisQuery
-
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final String
analyzer()
The analyzer that is used to analyze the free form text.final Double
Each term in the formed query could be further boosted by their tf-idf score.final Boolean
Controls whether the query should fail (throw an exception) if any of the specified fields are not of the supported types (text
orkeyword
).fields()
A list of fields to fetch and analyze the text from.final Boolean
include()
Specifies whether the input documents should also be included in the search results returned.like()
Required - Specifies free form text and/or a single or multiple documents for which you want to find similar documents.final Integer
The maximum document frequency above which the terms are ignored from the input document.final Integer
The maximum number of query terms that can be selected.final Integer
The maximum word length above which the terms are ignored.final Integer
The minimum document frequency below which the terms are ignored from the input document.final String
After the disjunctive query has been formed, this parameter controls the number of terms that must match.final Integer
The minimum term frequency below which the terms are ignored from the input document.final Integer
The minimum word length below which the terms are ignored.static MoreLikeThisQuery
Overrides the default analyzer.final String
routing()
API name:routing
protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
An array of stop words.unlike()
Used in combination withlike
to exclude documents that match a set of terms.final Long
version()
API name:version
final VersionType
API name:version_type
Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer, 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.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
Json deserializer forMoreLikeThisQuery
-
-
Method Details
-
of
public static MoreLikeThisQuery of(Function<MoreLikeThisQuery.Builder, ObjectBuilder<MoreLikeThisQuery>> fn) -
_queryKind
Query variant kind.- Specified by:
_queryKind
in interfaceQueryVariant
-
analyzer
The analyzer that is used to analyze the free form text. Defaults to the analyzer associated with the first field in fields.API name:
analyzer
-
boostTerms
Each term in the formed query could be further boosted by their tf-idf score. This sets the boost factor to use when using this feature. Defaults to deactivated (0).API name:
boost_terms
-
failOnUnsupportedField
Controls whether the query should fail (throw an exception) if any of the specified fields are not of the supported types (text
orkeyword
).API name:
fail_on_unsupported_field
-
fields
A list of fields to fetch and analyze the text from. Defaults to theindex.query.default_field
index setting, which has a default value of*
.API name:
fields
-
include
Specifies whether the input documents should also be included in the search results returned.API name:
include
-
like
Required - Specifies free form text and/or a single or multiple documents for which you want to find similar documents.API name:
like
-
maxDocFreq
The maximum document frequency above which the terms are ignored from the input document.API name:
max_doc_freq
-
maxQueryTerms
The maximum number of query terms that can be selected.API name:
max_query_terms
-
maxWordLength
The maximum word length above which the terms are ignored. Defaults to unbounded (0
).API name:
max_word_length
-
minDocFreq
The minimum document frequency below which the terms are ignored from the input document.API name:
min_doc_freq
-
minimumShouldMatch
After the disjunctive query has been formed, this parameter controls the number of terms that must match.API name:
minimum_should_match
-
minTermFreq
The minimum term frequency below which the terms are ignored from the input document.API name:
min_term_freq
-
minWordLength
The minimum word length below which the terms are ignored.API name:
min_word_length
-
perFieldAnalyzer
Overrides the default analyzer.API name:
per_field_analyzer
-
routing
API name:routing
-
stopWords
An array of stop words. Any word in this set is ignored.API name:
stop_words
-
unlike
Used in combination withlike
to exclude documents that match a set of terms.API name:
unlike
-
version
API name:version
-
versionType
API name:version_type
-
serializeInternal
- Overrides:
serializeInternal
in classQueryBase
-
setupMoreLikeThisQueryDeserializer
protected static void setupMoreLikeThisQueryDeserializer(ObjectDeserializer<MoreLikeThisQuery.Builder> op)
-