SolrDisMaxQuery
PHP Manual

SolrDisMaxQuery::useEDisMaxQueryParser

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

SolrDisMaxQuery::useEDisMaxQueryParserSwitch QueryParser to be EDisMax

Descrierea

public SolrDisMaxQuery SolrDisMaxQuery::useEDisMaxQueryParser ( void )

Switch QueryParser to be EDisMax. By default the query builder uses edismax, if it was switched using SolrDisMaxQuery::useDisMaxQueryParser(), it can be switched back using this method.

Parametri

Această funcție nu are parametri.

Valorile întoarse

SolrDisMaxQuery

Exemple

Example #1 SolrDisMaxQuery::useEDisMaxQueryParser() example

<?php

$dismaxQuery 
= new SolrDisMaxQuery();
$dismaxQuery->useEDisMaxQueryParser();
echo 
$dismaxQuery;

?>

Exemplul de mai sus va afișa ceva similar cu:

defType=edismax

A se vedea și


SolrDisMaxQuery
PHP Manual