Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<SolrQuery::getHighlightMergeContiguousSolrQuery::getHighlightRegexMaxAnalyzedChars>
^SolrQueryLast updated: Mon, 26 Oct 2026

SolrQuery::getHighlightQuery

(PECL solr >= 2.7.0)

SolrQuery::getHighlightQuery — Return the highlight query

Description

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.

Parameters

This function has no parameters.

Return Values

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

See Also


<SolrQuery::getHighlightMergeContiguousSolrQuery::getHighlightRegexMaxAnalyzedChars>
^SolrQueryLast updated: Mon, 26 Oct 2026