Package org.nuxeo.elasticsearch.hint
Class MoreLikeThisESHintQueryBuilder
java.lang.Object
org.nuxeo.elasticsearch.hint.MoreLikeThisESHintQueryBuilder
- All Implemented Interfaces:
ESHintQueryBuilder
The implementation of
ESHintQueryBuilder
for the "more_like_this" Elasticsearch hint
operator.- Since:
- 11.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.opensearch.index.query.MoreLikeThisQueryBuilder.Item[]
Build a single or an array ofMoreLikeThisQueryBuilder.Item
according to the value type.org.opensearch.index.query.QueryBuilder
Builds the ElasticsearchQueryBuilder
.
-
Field Details
-
MORE_LIKE_THIS_MIN_TERM_FREQ
public static final int MORE_LIKE_THIS_MIN_TERM_FREQ- See Also:
-
MORE_LIKE_THIS_MIN_DOC_FREQ
public static final int MORE_LIKE_THIS_MIN_DOC_FREQ- See Also:
-
MORE_LIKE_THIS_MAX_QUERY_TERMS
public static final int MORE_LIKE_THIS_MAX_QUERY_TERMS- See Also:
-
-
Constructor Details
-
MoreLikeThisESHintQueryBuilder
public MoreLikeThisESHintQueryBuilder()
-
-
Method Details
-
make
Builds the ElasticsearchQueryBuilder
.- Specified by:
make
in interfaceESHintQueryBuilder
- Parameters:
hint
- the elasticsearch hintfieldName
- the elasticsearch field namevalue
- the value that we are looking for- Returns:
MoreLikeThisQueryBuilder
-
getItems
Build a single or an array ofMoreLikeThisQueryBuilder.Item
according to the value type. Where eachMoreLikeThisQueryBuilder.Item
represent a document request- Parameters:
value
- represent what we are looking for. Can beString
or an array ofString
- Returns:
- the items / document requests
-