SolrQuery::setHighlightQuery
(PECL solr >= 2.7.0)
SolrQuery::setHighlightQuery — A query designated for highlighting
Description
A query to use for highlighting and which will be set as the value of the Solr hl.q parameter.
This parameter allows one to highlight different terms or fields than those being used to retrieve documents.
Default value when not set: the value of the request's q parameter.
See the » Highlighting
section for more details about the Solr hl.q parameter.
Parameters
q
Highlight Query.
Return Values
Returns the current SolrQuery object.
See Also
- SolrQuery::getHighlightQuery() - Return the highlight query
- SolrQuery::setHighlightFields()
- SolrQuery::getHighlightFields() - Returns all the fields that Solr should generate highlighted snippets for
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
