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

Robert Muir commented on LUCENE-6371:
-------------------------------------

I propose we pull the current payload api (getPayload, hasPayloadAvailable) out 
of Spans and move it to a PayloadSpans and make the .payloads package just 
require that.
.payloads already has duplicates of almost all functionality anyway (including 
term and near).

This would let us simplify spans and make them efficient for the majority case. 
Apis with Collection<byte[]> per position are not efficient.

Separately, fixing the payload API to be more efficient could then be an 
independent issue: hopefully proposing a new api that requires the user specify 
how payloads should be combined or something like that. 


> Improve Spans payload collection
> --------------------------------
>
>                 Key: LUCENE-6371
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6371
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Paul Elschot
>            Priority: Minor
>
> Spin off from LUCENE-6308, see the comments there from around 23 March 2015.



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