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

SolrQuery::getHighlightFragsize

PHP function Edit on GitHub ✎

(PECL solr >= 0.9.2)

Returns the number of characters of fragments to consider for highlighting

Description

SolrQuery::getHighlightFragsize([string $field_override]): int

Returns the number of characters of fragments to consider for highlighting. Zero implies no fragmenting. The entire field should be used.

Parameters

field_override

The name of the field

Return Values

Returns an integer on success or null if not set.

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