[
https://issues.apache.org/jira/browse/LUCENE-8388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16534866#comment-16534866
]
Uwe Schindler commented on LUCENE-8388:
---------------------------------------
Hi, +1 to remove.
Just some background: In Lucene 4 the idea was to have the well known
attributes on any internal iterator, so you can store additional information on
the interator, like for TokenStreams. As this was never implemented (no calls)
and we have no way to serialize the attributes, this is not really useful.
On TermsEnum, we currently use attributes in FuzzyQuery, to store some term
metadata (like the fuzzy boost) on the enum. But anywhere else, it is also not
used. One idea was to allow storing extra term metadata like payloads on the
terms itsself.
Uwe
> Deprecate and remove PostingsEnum#attributes()
> ----------------------------------------------
>
> Key: LUCENE-8388
> URL: https://issues.apache.org/jira/browse/LUCENE-8388
> Project: Lucene - Core
> Issue Type: New Feature
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Major
> Attachments: LUCENE-8388-7x.patch, LUCENE-8388.patch
>
>
> This method isn't used anywhere in the codebase, and seems to be entirely
> useless.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]