array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.gethighlight.php', 1 => 'SolrQuery::getHighlight', 2 => 'Returns the state of the hl parameter', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.getgrouptruncate.php', 1 => 'SolrQuery::getGroupTruncate', ), 'next' => array ( 0 => 'solrquery.gethighlightalternatefield.php', 1 => 'SolrQuery::getHighlightAlternateField', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/gethighlight.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::getHighlight

(PECL solr >= 0.9.2)

SolrQuery::getHighlightReturns the state of the hl parameter

说明

public SolrQuery::getHighlight(): bool

Returns a boolean indicating whether to enable highlighted snippets to be generated in the query response.

参数

此函数没有参数。

返回值

Returns a boolean on success and null if not set.