You are here

public function SearchApiSolrAcquiaConnector::getMoreLikeThisQuery in Acquia Connector 8

File

acquia_search/src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php, line 251

Class

SearchApiSolrAcquiaConnector
Acquia Search Plugin for Search API Solr.

Namespace

Drupal\acquia_search\Plugin\SolrConnector

Code

public function getMoreLikeThisQuery() {
  $this
    ->connect();
  $query = $this->solr
    ->createMoreLikeThis();
  $query
    ->setHandler('select');
  $query
    ->addParam('qt', 'mlt');
  return $query;
}