SolrDisMaxQuery::setBoostQuery
(No version information available, might only be in Git)
SolrDisMaxQuery::setBoostQuery — Directly Sets Boost Query Parameter (bq)
説明
Sets Boost Query Parameter (bq)
パラメータ
q
-
query
戻り値
例
例1 SolrDisMaxQuery::setBoostQuery() example
<?php
$dismaxQuery = new SolrDisMaxQuery("lucene");
$dismaxQuery->setBoostQuery('cat:electronics manu:local^2');
echo $dismaxQuery.PHP_EOL;
?>
上の例の出力は、 たとえば以下のようになります。
q=lucene&defType=edismax&bq=cat:electronics manu:local^2
参考
- SolrDisMaxQuery::addBoostQuery() - Adds a boost query field with value and optional boost (bq parameter)
- SolrDisMaxQuery::removeBoostQuery() - Removes a boost query partial by field name (bq)
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google