php8.5
Home/ Manual/ solr / solrquery/ SolrQuery::setHighlightSimplePre

SolrQuery::setHighlightSimplePre

PHP function Edit on GitHub ✎

(PECL solr >= 0.9.2)

Sets the text which appears before a highlighted term

Description

SolrQuery::setHighlightSimplePre(string $simplePre, [string $field_override]): SolrQuery

Sets the text which appears before a highlighted term

The default is <em>

Parameters

simplePre

The text which appears before a highlighted term

field_override

The name of the field.

Return Values

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

Source: reference/solr/solrquery/sethighlightsimplepre.xml · from the official PHP manual (php/doc-en)