public static function moreLikeThis(Array $fields, Array $ids, $minTermFreq = 1, $percentTermsToMatch = 0.5, $minWordLength = 3)
    {
        $body = array(
            'query' => array(
                'more_like_this' => array(
                    'fields' => $fields,
                    'ids' => $ids,
                    'min_term_freq' => $minTermFreq,
                    'percent_terms_to_match' => $percentTermsToMatch,
                    'min_word_length' => $minWordLength,
                )
            ),
            'size' => 1000
        );

        return static::search($body);
    }
public static function moreLikeThis(Array $fields, Array $ids, $minTermFreq = 1, $percentTermsToMatch = 0.5, $minWordLength = 3)
    {
        $body = array(
            'query' => array(
                'more_like_this' => array(
                    'fields' => $fields,
                    'ids' => $ids,
                    'min_term_freq' => $minTermFreq,
                    'percent_terms_to_match' => $percentTermsToMatch,
                    'min_word_length' => $minWordLength,
                )
            ),
            'size' => 1000
        );

        return static::search($body);
    }
public static function moreLikeThis ( Array $ fields , Array $ ids , $ minTermFreq = 1 , $ percentTermsToMatch = 0.5 , $ minWordLength = 3 ) { $ body = array ( 'query' => array ( 'more_like_this' => array ( 'fields' => $ fields , 'ids' => $ ids , 'min_term_freq' => $ minTermFreq , 'percent_terms_to_match' => $ percentTermsToMatch , 'min_word_length' => $ minWordLength , ) ) , 'size' => 1000 ) ; return static :: search ( $ body ) ; }
Builds a more_like_this query.

@param array $fields
@param array $ids
@param int $minTermFreq
@param float $percentTermsToMatch
@param int $minWordLength
@return ElasticCollection
Builds a more_like_this query .