public function SolrConnectorInterface::adjustTimeout in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::adjustTimeout()
- 4.x src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::adjustTimeout()
Sets a new timeout for queries, but not for indexing or optimization.
The timeout will not be saved in the configuration of the connector. It will be overwritten for the current request only.
Parameters
int $timeout: The new query timeout value to set.
\Solarium\Core\Client\Endpoint|null $endpoint: (optional) The Solarium endpoint object.
Return value
int The previous query timeout value.
Deprecated
use useTim
1 method overrides SolrConnectorInterface::adjustTimeout()
- SolrConnectorPluginBase::adjustTimeout in src/
SolrConnector/ SolrConnectorPluginBase.php - Sets a new timeout for queries, but not for indexing or optimization.
File
- src/
SolrConnectorInterface.php, line 518
Class
- SolrConnectorInterface
- The Solr connector interface.
Namespace
Drupal\search_api_solrCode
public function adjustTimeout(int $timeout, ?Endpoint &$endpoint = NULL);