SolrQuery::getHighlightQuery
PHP Manual
PHP Manual»SolrQuery»SolrQuery::getHighlightQuery

SolrQuery::getHighlightQuery

(PECL solr >= 2.7.0)

SolrQuery::getHighlightQuery — Return the highlight query

说明

public function SolrQuery::getHighlightQuery(): ?string

Returns previously set highlight query from the hl.q parameter. This parameter allows you to highlight different terms or fields than those being used to retrieve documents. See the » Highlighting section for more details.

参数

此函数没有参数。

返回值

Returns a string that contains the highlight query of the current SolrQuery, or null if highlight query is not set.

参见

To Top