PHP
Solr

SolrQuery::addMltField

SolrQuery::addMltField

(PECL solr >= 0.9.2)

SolrQuery::addMltField — Sets a field to use for similarity

Description

public SolrQuery 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.

← SolrQuery::addHighlightField

SolrQuery::addMltQueryField →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/solrquery.addmltfield.php