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 mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp imagickdraw set the polygon fill rule to be used by the clipping pathphp mongocursor sets whether this query can be done on a secondary deprecated php solrclient deletes all documents matching the given queryphp solrdismaxquery adds a boost query field with value and optional boost bq parameter php solrdismaxquery adds a phrase field pf 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 query field qf parameter php solrdismaxquery directly sets boost query parameter bq php solrdismaxquery sets phrase fields and their boosts and slops using pf2 parameterphp 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 overrides main filter query determines which documents to include in the main groupphp 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
关注编程学问公众号