public function StandardSolrCloudConnector::getMoreLikeThisQuery in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 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 314
Class
- StandardSolrCloudConnector
- Standard Solr Cloud connector.
Namespace
Drupal\search_api_solr\Plugin\SolrConnectorCode
public function getMoreLikeThisQuery() {
$query = parent::getMoreLikeThisQuery();
return $query
->setDistrib($this->configuration['distrib'] ?? TRUE);
}