@Value.Immutable(copy=false) public interface MoreLikeThisQuery extends StandardQuery
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MoreLikeThisQuery.Item |
BOOL_QUERY, EXISTS_QUERY, FUZZY_QUERY, GEO_BOUNDING_BOX_QUERY, GEO_DISTANCE_QUERY, GEO_POLYGON_QUERY, GEO_SHAPE_QUERY, IDS_QUERY, MATCH_QUERY, MORE_LIKE_THIS_QUERY, PREFIX_QUERY, QUERY_STRING_QUERY, RANGE_QUERY, REGEXP_QUERY, TERMS_QUERY, WILDCARD_QUERY| Modifier and Type | Method and Description |
|---|---|
default void |
accept(QueryVisitor visitor) |
java.lang.String |
getAnalyzer()
Returns the analyzer that is used to analyze the free form text.
|
java.lang.Float |
getBoostTerms()
Returns the additional boost for each term in the formed query.
|
default java.util.Set<java.lang.String> |
getFields() |
default java.util.List<java.lang.Object> |
getLike() |
default java.util.List<MoreLikeThisQuery.Item> |
getLikeItems() |
default java.util.List<java.lang.String> |
getLikeTexts() |
java.lang.Integer |
getMaxDocFrequency()
Returns the maximum document frequency above which the terms will be ignored from the input
document.
|
java.lang.Integer |
getMaxQueryTerms()
Returns the maximum number of query terms that will be selected.
|
java.lang.Integer |
getMaxWordLength()
Returns the maximum word length above which the terms will be ignored.
|
java.lang.Integer |
getMinDocFrequency()
Returns the minimum document frequency below which the terms will be ignored from the input
document.
|
java.lang.String |
getMinimumShouldMatch()
Returns the number of terms that must match after the disjunctive query has been formed.
|
java.lang.Integer |
getMinTermFrequency()
Returns the minimum term frequency below which the terms will be ignored from the input
document.
|
java.lang.Integer |
getMinWordLength()
Returns the minimum word length below which the terms will be ignored.
|
default java.util.Set<java.lang.String> |
getStopWords()
Returns an array of stop words.
|
default java.util.List<java.lang.Object> |
getUnlike() |
default java.util.List<MoreLikeThisQuery.Item> |
getUnlikeItems() |
default java.util.List<java.lang.String> |
getUnlikeTexts() |
default boolean |
isEmpty() |
java.lang.Boolean |
isFailOnUnsupportedField()
Returns true if query should fail (throw an exception) if any of the specified fields are not
of the supported types (text or keyword').
|
java.lang.Boolean |
isInclude()
Returns whether the input documents should also be included in the search results returned.
|
getBoost, getName, hasStandardDefaultscountNotEmptyjava.lang.String getAnalyzer()
java.lang.Float getBoostTerms()
@Value.Default default java.util.Set<java.lang.String> getFields()
@Value.Lazy default java.util.List<java.lang.Object> getLike()
@Value.Default default java.util.List<MoreLikeThisQuery.Item> getLikeItems()
@Value.Default default java.util.List<java.lang.String> getLikeTexts()
java.lang.Integer getMaxDocFrequency()
java.lang.Integer getMaxQueryTerms()
java.lang.Integer getMaxWordLength()
java.lang.Integer getMinDocFrequency()
java.lang.String getMinimumShouldMatch()
java.lang.Integer getMinTermFrequency()
java.lang.Integer getMinWordLength()
@Value.Default default java.util.Set<java.lang.String> getStopWords()
@Value.Lazy default java.util.List<java.lang.Object> getUnlike()
@Value.Default default java.util.List<MoreLikeThisQuery.Item> getUnlikeItems()
@Value.Default default java.util.List<java.lang.String> getUnlikeTexts()
java.lang.Boolean isFailOnUnsupportedField()
java.lang.Boolean isInclude()
default void accept(QueryVisitor visitor)