array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrdismaxquery.setqueryalt.php', 1 => 'SolrDisMaxQuery::setQueryAlt', ), 'up' => array ( 0 => 'class.solrdismaxquery.php', 1 => 'SolrDisMaxQuery', ), 'prev' => array ( 0 => 'solrdismaxquery.setphraseslop.php', 1 => 'SolrDisMaxQuery::setPhraseSlop', ), 'next' => array ( 0 => 'solrdismaxquery.setqueryphraseslop.php', 1 => 'SolrDisMaxQuery::setQueryPhraseSlop', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrdismaxquery/setqueryalt.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(No version information available, might only be in Git)
SolrDisMaxQuery::setQueryAlt — Set Query Alternate (q.alt parameter)
Set Query Alternate (q.alt parameter)
When the main q parameter is not specified or is blank. The q.alt parameter is used
q
Query String
示例 #1 SolrDisMaxQuery::setQueryAlt() example
<?php
$dismaxQuery = new DisMaxQuery();
$dismaxQuery->setQueryAlt('*:*');
?>
以上示例的输出类似于:
defType=edismax&q.alt=*:*&q=