SolrDisMaxQuery::useDisMaxQueryParser

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

SolrDisMaxQuery::useDisMaxQueryParserSwitch QueryParser to be DisMax Query Parser

说明

public SolrDisMaxQuery::useDisMaxQueryParser ( void ) : SolrDisMaxQuery

Switch QueryParser to be DisMax Query Parser

参数

此函数没有参数。

返回值

SolrDisMaxQuery

范例

Example #1 SolrDisMaxQuery::useDisMaxQueryParser() example

<?php

$dismaxQuery 
= new SolrDisMaxQuery();
$dismaxQuery->useDisMaxQueryParser();
echo 
$dismaxQuery;
?>

以上例程的输出类似于:

defType=dismax

参见

  • SolrDisMaxQuery::useDisMaxQueryParser()
相关文章
php maxdb 函数 enforce execution of a query on the master in a master/slave setupphp mongocursor sets whether this query can be done on a secondary deprecated php sdo das relational 函数 executes an sql query passed as a prepared statement with a list of values to substitute for placeholders and return the results as a normalised data graphphp solrdismaxquery adds a boost query field with value and optional boost bq parameter php solrdismaxquery add a query field with optional boost qf parameter php solrdismaxquery removes a boost query partial by field name bq php solrdismaxquery removes a phrase field pf parameter php solrdismaxquery removes a query field qf parameter php solrdismaxquery directly sets boost query parameter bq 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 sets user fields parameter uf php solrdismaxquery switch queryparser to be dismax query parserphp solrdismaxquery switch queryparser to be edismaxphp solrquery specifies a filter queryphp solrquery returns the expand query expand.q parameterphp solrquery returns if a field will only be highlighted if the query matched in this particular fieldphp solrquery returns whether or not the query will be boosted by the interesting term relevancephp solrquery returns the maximum number of query terms that will be included in any generated queryphp solrquery set if the query will be boosted by the interesting term relevance
关注编程学问公众号