Dutch PHP Conference 2025 - Call For Papers

SolrQuery::setHighlightQuery

(PECL solr >= 2.7.0)

SolrQuery::setHighlightQueryA query designated for highlighting (hl.q)

Descripción

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

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

Parámetros

q

Highlight Query

Valores devueltos

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

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top