[ 
https://issues.apache.org/jira/browse/SOLR-6916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266129#comment-14266129
 ] 

David Smiley edited comment on SOLR-6916 at 1/8/15 2:41 PM:
------------------------------------------------------------

It'd be nice to auto-detect the existence of payloads and enable based on 
that... hmmmm, how about choosing the default via this?:
{{request.getSearcher().getLeafReader().getFieldInfos().fieldInfo(fieldName).hasPayloads();}}


was (Author: dsmiley):
Nevermind my last comment; the cost is higher, an extra int... and even then 
most won't need it.  It'd be nice to auto-detect the existence of payloads and 
enable based on that... hmmmm, how about choosing the default via this?:
{{request.getSearcher().getLeafReader().getFieldInfos().fieldInfo(fieldName).hasPayloads();}}

> 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
>
>
> 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]

Reply via email to