SolrDisMaxQuery::useDisMaxQueryParser

(No version information available, might only be in Git)
Switch QueryParser to be DisMax Query Parser
public SolrDisMaxQuery SolrDisMaxQuery::useDisMaxQueryParser ( void )

Switch QueryParser to be DisMax Query Parser

Returns:

SolrDisMaxQuery

Examples:
SolrDisMaxQuery::useDisMaxQueryParser() example
1
2
3
4
5
6
<?php
 
$dismaxQuery new SolrDisMaxQuery();
$dismaxQuery->useDisMaxQueryParser();
echo $dismaxQuery;
?>

The above example will output something similar to:

defType=dismax
doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.