array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.gethighlightmaxalternatefieldlength.php', 1 => 'SolrQuery::getHighlightMaxAlternateFieldLength', 2 => 'Returns the maximum number of characters of the field to return', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.gethighlighthighlightmultiterm.php', 1 => 'SolrQuery::getHighlightHighlightMultiTerm', ), 'next' => array ( 0 => 'solrquery.gethighlightmaxanalyzedchars.php', 1 => 'SolrQuery::getHighlightMaxAnalyzedChars', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/gethighlightmaxalternatefieldlength.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::getHighlightMaxAlternateFieldLength

(PECL solr >= 0.9.2)

SolrQuery::getHighlightMaxAlternateFieldLengthReturns the maximum number of characters of the field to return

说明

public SolrQuery::getHighlightMaxAlternateFieldLength(string $field_override = ?): int

Returns the maximum number of characters of the field to return

参数

field_override

The name of the field

返回值

Returns an integer on success and null if not set.