array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'solrquery.sethighlightsimplepre.php', 1 => 'SolrQuery::setHighlightSimplePre', 2 => 'Sets the text which appears before a highlighted term', ), 'up' => array ( 0 => 'class.solrquery.php', 1 => 'SolrQuery', ), 'prev' => array ( 0 => 'solrquery.sethighlightsimplepost.php', 1 => 'SolrQuery::setHighlightSimplePost', ), 'next' => array ( 0 => 'solrquery.sethighlightsnippets.php', 1 => 'SolrQuery::setHighlightSnippets', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrquery/sethighlightsimplepre.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SolrQuery::setHighlightSimplePre

(PECL solr >= 0.9.2)

SolrQuery::setHighlightSimplePreSets the text which appears before a highlighted term

说明

public SolrQuery::setHighlightSimplePre(string $simplePre, string $field_override = ?): SolrQuery

Sets the text which appears before a highlighted term

The default is <em>

参数

simplePre

The text which appears before a highlighted term

field_override

The name of the field.

返回值

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