Scholar Repository
Home>Manual>Sets a field to use for similarity

Sets a field to use for similarity


SolrQuery::addMltField

(PECL solr >= 0.9.2)

SolrQuery::addMltFieldSets a field to use for similarity

Description

publicSolrQuery SolrQuery::addMltField ( string $field )

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

Parameters

field

The name of the field

Return Values

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


Home>Manual>Sets a field to use for similarity