Reputation: 55
This happens on SOLR 5.5.1
When passing the hl.method parameter with the SOLR query the highlighter does not change.
If I explicitly set the highlighter component to the following:
<searchComponent class="solr.HighlightComponent" name="highlight">
<highlighting class="org.apache.solr.highlight.PostingsSolrHighlighter"/>
</searchComponent>
It does use the Postings Highlighter. My use case, however, requires me to use the DefaultHighlighter in one situation and the PostingsSolrHighligther in the other.
According to the documentation this should be possible by using the hl.method parameter.
What am I missing?
Upvotes: 0
Views: 355
Reputation: 9789
hl.method has been introduced in Solr 6.4, together with UnifiedHighlighter. I am assuming you are following the online Reference guide that is live and reflects the next version of Solr.
Usually that's ok, but sometimes it is worth consulting the guide specifically for your version. They are all still available for the download in the PDF form.
Upvotes: 1