[
https://issues.apache.org/jira/browse/SOLR-6916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated SOLR-6916:
-------------------------------
Attachment: SOLR-6916.patch
The attached patch adds {{hl.payloads}} and its default setting is determined
by the presence of indexed payloads using the aforementioned technique.
Testing was annoying because there's no QParser for this so I tested the
Highlighting component at a lower level, allowing me to supply a
SpanPayloadCheckQuery directly.
I'll commit this Monday, subject to feedback.
> Option to use payloads with default highlighter
> -----------------------------------------------
>
> Key: SOLR-6916
> URL: https://issues.apache.org/jira/browse/SOLR-6916
> Project: Solr
> Issue Type: New Feature
> Components: highlighter
> Reporter: David Smiley
> Assignee: David Smiley
> Fix For: 5.0
>
> Attachments: SOLR-6916.patch
>
>
> MemoryIndex can now store payloads (LUCENE-6155), and there's a corresponding
> boolean flag setter on QueryScorer (used by the default highlighter). We
> should add a parameter to toggle this. It will only take effect if
> {{hl.usePhraseHighlighter=true}} and the source of the tokens comes from
> re-analysis. This settings is ignored if the tokens come from term vectors
> which support payloads already (in Lucene/Solr 5) provided they are there.
> I suggest naming this boolean parameter {{hl.payloads}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]