SolrQuery::setHighlightSnippets

(PECL solr >= 0.9.2)

SolrQuery::setHighlightSnippetsSets the maximum number of highlighted snippets to generate per field

说明

public SolrQuery::setHighlightSnippets ( int $value [, string $field_override ] ) : SolrQuery

Sets the maximum number of highlighted snippets to generate per field

参数

value

The maximum number of highlighted snippets to generate per field

field_override

The name of the field.

返回值

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

相关文章
php solrquery sets a field to use for similarityphp solrquery returns the maximum number of constraint counts that should be returned for the facet fieldsphp solrquery returns all the fields that solr should generate highlighted snippets forphp solrquery returns the maximum number of characters of the field to returnphp solrquery returns the maximum number of characters into a document to look for suitable snippetsphp solrquery returns the maximum number of characters from a field when using the regex fragmenterphp solrquery returns if a field will only be highlighted if the query matched in this particular fieldphp solrquery returns the maximum number of highlighted snippets to generate per fieldphp solrquery returns the maximum number of query terms that will be included in any generated queryphp solrquery returns the maximum number of tokens to parse in each document field that is not stored with termvector supportphp solrquery returns the maximum number of terms solr should returnphp solrquery sets the maximum number of characters of the field to returnphp solrquery specify the maximum number of characters to analyzephp solrquery sets the text which appears after a highlighted termphp solrquery sets the text which appears before a highlighted termphp solrquery sets the maximum number of highlighted snippets to generate per fieldphp solrquery sets the maximum number of query terms includedphp solrquery specifies the maximum number of rows to return in the resultphp solrquery sets the name of the field to get the terms fromphp solrquery sets the maximum number of terms to return
关注编程学问公众号