SolrDisMaxQuery::__construct

(No version information available, might only be in Git)

SolrDisMaxQuery::__constructClass Constructor

Descrição

publicSolrDisMaxQuery::__construct(string$q = ?)

Class constructor initializes the object and sets the q parameter if passed

Parâmetros

q

Search Query (q parameter)

Valor Retornado

Erros/Exceções

Emits SolrIllegalArgumentException in case of an invalid parameter was passed.

Exemplos

Exemplo #1 SolrDisMaxQuery::__construct() example

<?php

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

?>

O exemplo acima produzirá:

q=lucene&defType=edismax
To Top