(No version information available, might only be in Git)
Class Constructor
public SolrDisMaxQuery::__construct ([ string $q ] )
Class constructor initializes the object and sets the q parameter if passed
Parameters:
q
Search Query (q parameter)
Returns:
Exception:
Emits SolrIllegalArgumentException in case of an invalid parameter was passed.
Examples:
SolrDisMaxQuery::__construct() example
<?php $dismaxQuery = new SolrDisMaxQuery('lucene'); echo $dismaxQuery; ?>
The above example will output:
q=lucene&defType=edismax
Please login to continue.