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

SolrQuery::setHighlightRequireFieldMatch

(PECL solr >= 0.9.2)

SolrQuery::setHighlightRequireFieldMatch — Require field matching during highlighting

Description

public function SolrQuery::setHighlightRequireFieldMatch(bool $flag): SolrQuery

If true, then a field will only be highlighted if the query matched in this particular field.

This will only work if SolrQuery::setHighlightUsePhraseHighlighter() was set to true

Parameters

flag

true or false

Return Values

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


<SolrQuery::setHighlightRegexSlopSolrQuery::setHighlightSimplePost>
^SolrQueryLast updated: Mon, 26 Oct 2026