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 add a field to be used to group resultsphp solrquery add a group sort field group.sort parameter php solrquery sets a field to use for similarityphp 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 highlight field to use as backup or defaultphp 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 highlighted snippets to generate per fieldphp 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 an expand sort field from the expand.sort parameterphp solrquery removes a field from the list of fieldsphp solrquery removes one of the stats.field parametersphp solrquery determines the ordering of the facet field constraintsphp 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 the size of fragments to consider for highlightingphp solrquery sets the maximum number of characters of the field to returnphp solrquery require field matching during highlighting
关注编程学问公众号