SolrQuery::setHighlightRequireFieldMatch

(PECL solr >= 0.9.2)

SolrQuery::setHighlightRequireFieldMatchRequire field matching during highlighting

说明

public SolrQuery::setHighlightRequireFieldMatch ( bool $flag ) : SolrQuery

If TRUE, then a field will only be highlighted if the query matched in this particular field.

This will only work if SolrQuery::setHighlightUsePhraseHighlighter() was set to TRUE

参数

flag

TRUE or FALSE

返回值

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

相关文章
php solrquery adds another field to the facetphp solrquery sets a field to use for similarityphp solrquery maps to stats.field parameterphp solrquery returns the lower bound for the first date range for all date faceting on this fieldphp solrquery returns group fields group.field parameter values php solrquery returns the number of characters of fragments to consider for highlightingphp solrquery returns whether or not to enable highlighting for range/wildcard/fuzzy/prefix queriesphp solrquery returns the maximum number of characters of the field to returnphp solrquery returns the maximum number of characters from a field when using the regex fragmenterphp solrquery returns the maximum number of tokens to parse in each document field that is not stored with termvector supportphp solrquery returns the field from which the terms are retrievedphp solrquery removes a field from the list of fieldsphp solrquery removes one of the fields used for highlightingphp solrquery specifies the type of algorithm to use when faceting a fieldphp solrquery if true the result of the first field grouping command is used as the main result list in the response using group.format=simplephp solrquery if true facet counts are based on the most relevant document of each group matching the queryphp solrquery enables or disables highlightingphp solrquery specifies the backup field to usephp solrquery require field matching during highlightingphp solrquery sets the maximum number of highlighted snippets to generate per field
关注编程学问公众号