You are here

public function SolrConnectorPluginBase::getUpdateQuery in Search API Solr 8.3

Same name and namespace in other branches
  1. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getUpdateQuery()
  2. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getUpdateQuery()
  3. 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getUpdateQuery()

Creates a new Solarium update query.

Return value

\Solarium\QueryType\Update\Query\Query The Update query.

Overrides SolrConnectorInterface::getUpdateQuery

1 call to SolrConnectorPluginBase::getUpdateQuery()
StandardSolrCloudConnector::deleteCheckpoints in src/Plugin/SolrConnector/StandardSolrCloudConnector.php
Deletes all checkpoints for given index/site.

File

src/SolrConnector/SolrConnectorPluginBase.php, line 692

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getUpdateQuery() {
  $this
    ->connect();
  return $this->solr
    ->createUpdate();
}