(沒有版本資訊,可能只在 Git 中)
SolrDisMaxQuery::setQueryAlt — 設定替代查詢 (q.alt 參數)
設定替代查詢 (q.alt 參數)
當主要的 q 參數未指定或空白時,將使用 q.alt 參數。
q
查詢字串
範例 #1 SolrDisMaxQuery::setQueryAlt() 範例
<?php
$dismaxQuery = new DisMaxQuery();
$dismaxQuery->setQueryAlt('*:*');
?>
以上範例將輸出類似以下的內容
defType=edismax&q.alt=*:*&q=