public function SolrConnectorPluginBase::getMoreLikeThisQuery in Search API Solr 8.3
Same name and namespace in other branches
- 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getMoreLikeThisQuery()
- 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getMoreLikeThisQuery()
- 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getMoreLikeThisQuery()
Creates a new Solarium more like this query.
Return value
\Solarium\QueryType\MorelikeThis\Query The MoreLikeThis query.
Overrides SolrConnectorInterface::getMoreLikeThisQuery
1 call to SolrConnectorPluginBase::getMoreLikeThisQuery()
- StandardSolrCloudConnector::getMoreLikeThisQuery in src/
Plugin/ SolrConnector/ StandardSolrCloudConnector.php - Creates a new Solarium more like this query.
1 method overrides SolrConnectorPluginBase::getMoreLikeThisQuery()
- StandardSolrCloudConnector::getMoreLikeThisQuery in src/
Plugin/ SolrConnector/ StandardSolrCloudConnector.php - Creates a new Solarium more like this query.
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 708
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function getMoreLikeThisQuery() {
$this
->connect();
return $this->solr
->createMoreLikeThis();
}