array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), '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); ?>

SolrQuery::setHighlightMaxAlternateFieldLength

(PECL solr >= 0.9.2)

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

Açıklama

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.

Bağımsız Değişkenler

fieldLength

The length of the field

field_override

The name of the field.

Dönen Değerler

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