SolrQuery::__construct

Constructor

&reftitle.description; public `SolrQuery::__construct` `string` `q`

Constructor.

&reftitle.parameters;

`q`

- Optional search query

&reftitle.returnvalues;

None

&reftitle.errors;

Emits `SolrIllegalArgumentException` in case of an invalid parameter was passed.

&reftitle.changelog;

&Version; | &Description;
PECL solr 2.0.0 | If `q` was invalid, then a `SolrIllegalArgumentException` is now thrown. Previously an error was emitted.