php8.5
Home/ Manual/ solr / solrquery/ SolrQuery::setTimeAllowed

SolrQuery::setTimeAllowed

PHP function Edit on GitHub ✎

(PECL solr >= 0.9.2)

The time allowed for search to finish

Description

SolrQuery::setTimeAllowed(int $timeAllowed): SolrQuery

The time allowed for a search to finish. This value only applies to the search and not to requests in general. Time is in milliseconds. Values less than or equal to zero implies no time restriction. Partial results may be returned, if there are any.

Parameters

timeAllowed

The time allowed for a search to finish.

Return Values

Returns the current SolrQuery object, if the return value is used.

Source: reference/solr/solrquery/settimeallowed.xml · from the official PHP manual (php/doc-en)