You are here

public function StandardSolrCloudConnector::getMoreLikeThisQuery in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::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/StandardSolrCloudConnector.php, line 231

Class

StandardSolrCloudConnector
Standard Solr Cloud connector.

Namespace

Drupal\search_api_solr\Plugin\SolrConnector

Code

public function getMoreLikeThisQuery() {
  $query = parent::getMoreLikeThisQuery();
  return $query
    ->setDistrib(TRUE);
}