W3cubDocs

/PHP

SolrQuery::getHighlightQuery

(PECL solr >= 2.7.0)

SolrQuery::getHighlightQueryreturn the highlightquery (hl.q)

Description

public SolrQuery::getHighlightQuery(): string

Returns previously set highlight query. This parameter allows you to highlight different terms or fields than those being used to retrieve documents.

Parameters

This function has no parameters.

Return Values

Returns the current SolrHighlightQuery string, or null if not set.

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/solrquery.gethighlightquery.php