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

SolrQuery::__construct

PHP function Edit on GitHub ✎

(PECL solr >= 0.9.2)

Constructor

Description

SolrQuery::__construct([string $q])

Constructor.

Parameters

q

Optional search query

Return Values

None

Errors/Exceptions

Emits SolrIllegalArgumentException in case of an invalid parameter was passed.

Changelog

VersionDescription
PECL solr 2.0.0If q was invalid, then a SolrIllegalArgumentException is now thrown. Previously an error was emitted.

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