SolrQuery
PHP 手册

SolrQuery::setMlt

(PECL solr >= 0.9.2)

SolrQuery::setMltEnables or disables moreLikeThis

说明

public SolrQuery SolrQuery::setMlt ( bool $flag )

Enables or disables moreLikeThis

参数

flag

TRUE enables it and FALSE turns it off.

返回值

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


SolrQuery
PHP 手册