public function SearchApiSolrAcquiaConnector::getMoreLikeThisQuery in Acquia Search 2.x
Same name and namespace in other branches
- 3.x src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php \Drupal\acquia_search\Plugin\SolrConnector\SearchApiSolrAcquiaConnector::getMoreLikeThisQuery()
Creates a new Solarium more like this query.
Return value
\Solarium\QueryType\MorelikeThis\Query The MoreLikeThis query.
Overrides SolrConnectorPluginBase::getMoreLikeThisQuery
File
- src/
Plugin/ SolrConnector/ SearchApiSolrAcquiaConnector.php, line 257
Class
- SearchApiSolrAcquiaConnector
- Acquia Search Plugin for Search API Solr.
Namespace
Drupal\acquia_search\Plugin\SolrConnectorCode
public function getMoreLikeThisQuery() {
$this
->connect();
$query = $this->solr
->createMoreLikeThis();
$query
->setHandler('select');
$query
->addParam('qt', 'mlt');
return $query;
}