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
<?php

$dismaxQuery = new SolrDisMaxQuery('lucene');
echo $dismaxQuery;

?>

The above example will output:

q=lucene&defType=edismax
doc_php
2016-02-24 16:11:44
Comments
Leave a Comment

Please login to continue.