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

SolrQuery::setHighlightFragsize

(PECL solr >= 0.9.2)

SolrQuery::setHighlightFragsize — The size of fragments to consider for highlighting

Description

public function SolrQuery::setHighlightFragsize(int $size, string $field_override = ?): SolrQuery

Sets the size, in characters, of fragments to consider for highlighting. "0" indicates that the whole field value should be used (no fragmenting).

Parameters

size

The size, in characters, of fragments to consider for highlighting

field_override

The name of the field.

Return Values

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


<SolrQuery::setHighlightFragmenterSolrQuery::setHighlightHighlightMultiTerm>
^SolrQueryLast updated: Mon, 26 Oct 2026