SolrQuery::setHighlightQuery

A query designated for highlighting (hl.q)

Description

public SolrQuery SolrQuery::setHighlightQuery(string $q)

A query to use for highlighting. 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

Solr Parameter reference: hl.q

Parameters

q

Highlight Query

Return Values

Returns the current SolrQuery object, if the return value is used.