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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic org.opensearch.index.query.MoreLikeThisQueryBuilder.Item[]Build a single or an array ofMoreLikeThisQueryBuilder.Itemaccording to the value type.org.opensearch.index.query.QueryBuilderBuilds the ElasticsearchQueryBuilder.
- 
Field Details- 
MORE_LIKE_THIS_MIN_TERM_FREQpublic static final int MORE_LIKE_THIS_MIN_TERM_FREQ- See Also:
 
- 
MORE_LIKE_THIS_MIN_DOC_FREQpublic static final int MORE_LIKE_THIS_MIN_DOC_FREQ- See Also:
 
- 
MORE_LIKE_THIS_MAX_QUERY_TERMSpublic static final int MORE_LIKE_THIS_MAX_QUERY_TERMS- See Also:
 
 
- 
- 
Constructor Details- 
MoreLikeThisESHintQueryBuilderpublic MoreLikeThisESHintQueryBuilder()
 
- 
- 
Method Details- 
makeBuilds the ElasticsearchQueryBuilder.- Specified by:
- makein interface- ESHintQueryBuilder
- Parameters:
- hint- the elasticsearch hint
- fieldName- the elasticsearch field name
- value- the value that we are looking for
- Returns:
- MoreLikeThisQueryBuilder
 
- 
getItemsBuild a single or an array ofMoreLikeThisQueryBuilder.Itemaccording to the value type. Where eachMoreLikeThisQueryBuilder.Itemrepresent a document request- Parameters:
- value- represent what we are looking for. Can be- Stringor an array of- String
- Returns:
- the items / document requests
 
 
-