array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.sethighlightmaxalternatefieldlength.php', 1 => 'SolrQuery::setHighlightMaxAlternateFieldLength', 2 => 'Sets the maximum number of characters of the field to return', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.sethighlighthighlightmultiterm.php', 1 => 'SolrQuery::setHighlightHighlightMultiTerm', ), 'next' => array ( 0 => 'solrquery.sethighlightmaxanalyzedchars.php', 1 => 'SolrQuery::setHighlightMaxAnalyzedChars', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/sethighlightmaxalternatefieldlength.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL solr >= 0.9.2)
SolrQuery::setHighlightMaxAlternateFieldLength — Sets the maximum number of characters of the field to return
$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.