= 0.9.2)SolrQuery::addMltField — Sets a field to use for similarity說(shuō)明public SolrQuery::addMltField(string $field): S">

SolrQuery::addMltField

(PECL solr >= 0.9.2)

SolrQuery::addMltFieldSets a field to use for similarity

說(shuō)明

public SolrQuery::addMltField(string $field): SolrQuery

Maps to mlt.fl. It specifies that a field should be used for similarity.

參數(shù)

field

The name of the field

返回值

Returns the current SolrQuery object, if the return value is used.