SolrDisMaxQuery::__construct

(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
1
2
3
4
5
6
<?php
 
$dismaxQuery new SolrDisMaxQuery('lucene');
echo $dismaxQuery;
 
?>

The above example will output:

q=lucene&defType=edismax
doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.