(PECL solr >= 0.9.2)
SolrQuery::setHighlightMaxAlternateFieldLength — Sets the maximum number of characters of the field to return
public SolrQuery::setHighlightMaxAlternateFieldLength(int $fieldLength, string $field_override = ?): SolrQuery
If SolrQuery::setHighlightAlternateField() was passed the value true, this parameter specifies the maximum number of characters of the field to return
Any value less than or equal to 0 means unlimited.
fieldLengthThe length of the field
field_overrideThe name of the field.
Returns the current SolrQuery object, if the return value is used.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/solrquery.sethighlightmaxalternatefieldlength.php