SolrDisMaxQuery::useEDisMaxQueryParser

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

SolrDisMaxQuery::useEDisMaxQueryParserSwitch QueryParser to be EDisMax

Description

public SolrDisMaxQuery::useEDisMaxQueryParser(): SolrDisMaxQuery

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.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

SolrDisMaxQuery

Exemples

Exemple #1 SolrDisMaxQuery::useEDisMaxQueryParser() example

<?php

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

?>

Résultat de l'exemple ci-dessus est similaire à :

defType=edismax
add a note add a note

User Contributed Notes

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