PHP 8.6.0 Beta 3 is available for testing

SolrQuery::setHighlightQuery

(PECL solr >= 2.7.0)

SolrQuery::setHighlightQueryA query designated for highlighting

说明

public function SolrQuery::setHighlightQuery(string $q): SolrQuery

A query to use for highlighting and which will be set as the value of the Solr hl.q parameter. This parameter allows one to highlight different terms or fields than those being used to retrieve documents.

Default value when not set: the value of the request's q parameter.

See the » Highlighting section for more details about the Solr hl.q parameter.

参数

q

Highlight Query.

返回值

Returns the current SolrQuery object.

参见

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top