SolrQuery::getHighlightQuery
(PECL solr >= 2.7.0)
SolrQuery::getHighlightQuery — Return the highlight query
Description
Returns previously set highlight query from the
hl.q parameter.
This parameter allows you to highlight different terms or fields than those being used to retrieve documents.
See the » Highlighting
section for more details.
Parameters
This function has no parameters.
Return Values
Returns a string that contains the highlight query of the current SolrQuery,
or null if highlight query is not set.
See Also
- SolrQuery::setHighlightQuery() - A query designated for highlighting
- SolrQuery::getHighlightFields() - Returns all the fields that Solr should generate highlighted snippets for
- SolrQuery::setHighlightFields()
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
