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 deque returns a representation that can be converted to jsonphp fdf 函数 adds javascript code to be executed when acrobat opens the fdfphp firebird/interbase 函数 wait for an event to be posted by the databasephp ncurses 函数 ncurses is in endwin mode normal screen output may be performedphp ncurses 函数 switch terminal out of raw modephp harufont calculate the number of characters which can be included within the specified widthphp imagickdraw sets the fill color to be used for drawing filled objectsphp mongodb bson javascript returns a representation that can be converted to jsonphp mongodb bson objectid returns a representation that can be converted to jsonphp mongolog sets a callback function to be invoked for eventsphp mongolog sets the level s to be loggedphp solrdismaxquery adds a trigram phrase field pf3 parameter php solrdismaxquery adds a field to user fields parameter uf php solrdismaxquery set query alternate q.alt parameter php solrdismaxquery specifies the amount of slop permitted on phrase queries explicitly included in the user s query string qf 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 treshold frequency at which words will be ignored which do not occur in at least this many docsphp solrquery returns the frequency below which terms will be ignored in the source document
关注编程学问公众号