Class MoreLikeThisESHintQueryBuilder

    • Method Detail

      • make

        public org.elasticsearch.index.query.QueryBuilder make​(EsHint hint,
                                                               String fieldName,
                                                               Object value)
        Builds the Elasticsearch QueryBuilder.

        Specified by:
        make in interface ESHintQueryBuilder
        Parameters:
        hint - the elasticsearch hint
        fieldName - the elasticsearch field name
        value - the value that we are looking for
        Returns:
        MoreLikeThisQueryBuilder
      • getItems

        public static org.elasticsearch.index.query.MoreLikeThisQueryBuilder.Item[] getItems​(Object value)
        Build a single or an array of MoreLikeThisQueryBuilder.Item according to the value type. Where each MoreLikeThisQueryBuilder.Item represent a document request
        Parameters:
        value - represent what we are looking for. Can be String or an array of String
        Returns:
        the items / document requests