PHP 8.1.0 RC 4 available for testing

SolrDisMaxQuery::__construct

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

SolrDisMaxQuery::__constructClass Constructor

Descrição

public SolrDisMaxQuery::__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

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 irá imprimir:

q=lucene&defType=edismax

Veja Também

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top