SolrDisMaxQuery::useEDisMaxQueryParser

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

SolrDisMaxQuery::useEDisMaxQueryParserSwitch QueryParser to be EDisMax

说明

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.

参数

此函数没有参数。

返回值

SolrDisMaxQuery

范例

Example #1 SolrDisMaxQuery::useEDisMaxQueryParser() example

<?php

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

?>

以上例程的输出类似于:

defType=edismax

参见

相关文章
php pair returns a representation that can be converted to jsonphp firebird/interbase 函数 register a callback function to be called when events are postedphp firebird/interbase 函数 wait for an event to be posted by the databasephp mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp ncurses 函数 switch off keyboard input echophp imagickdraw set the polygon fill rule to be used by the clipping pathphp mongodb bson dbpointer returns a representation that can be converted to jsonphp mongogridfsfile returns a resource that can be used to read the stored filephp solrdismaxquery adds a phrase field pf parameter php solrdismaxquery add a query field with optional boost qf parameter php solrdismaxquery adds a trigram phrase field pf3 parameter php solrdismaxquery sets phrase fields and their boosts and slops using pf2 parameterphp solrdismaxquery sets the default slop on phrase queries ps parameter php solrdismaxquery set query alternate q.alt parameter php solrdismaxquery switch queryparser to be dismax query parserphp solrdismaxquery switch queryparser to be edismaxphp solrquery returns the maximum number of constraint counts that should be returned for the facet fieldsphp solrquery returns the maximum word length above which words will be ignoredphp solrquery returns the treshold frequency at which words will be ignored which do not occur in at least this many docsphp swoole process change the process to be a daemon process.
关注编程学问公众号