PHP Conference China 2020

SolrDisMaxQuery::useEDisMaxQueryParser

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

SolrDisMaxQuery::useEDisMaxQueryParserSwitch QueryParser to be EDisMax

Description

public SolrDisMaxQuery::useEDisMaxQueryParser ( void ) : 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;

?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

defType=edismax

Voir aussi

add a note add a note

User Contributed Notes

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