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::getHighlightSimplePostSolrQuery::getHighlightSnippets>
^SolrQueryLast updated: Mon, 26 Oct 2026

SolrQuery::getHighlightSimplePre

(PECL solr >= 0.9.2)

SolrQuery::getHighlightSimplePre — Returns the text which appears before a highlighted term

Description

public function SolrQuery::getHighlightSimplePre(string $field_override = ?): string

Returns the text which appears before a highlighted term. Accepts an optional field override

Parameters

field_override

The name of the field

Return Values

Returns a string on success and null if not set.


<SolrQuery::getHighlightSimplePostSolrQuery::getHighlightSnippets>
^SolrQueryLast updated: Mon, 26 Oct 2026