[ 
https://issues.apache.org/jira/browse/LUCENE-7867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alan Woodward updated LUCENE-7867:
----------------------------------
    Attachment: LUCENE-7867.patch

Here's a patch.

Token is used in three places:
* in lots of tests, as an input to CannedTokenStream.  For these uses, I've 
just moved the existing Token implementation into the test framework.
* in PrefixAwareTokenFilter and PrefixAndSuffixAwareTokenFilter.  These are a 
bit hacky, and could do with replacing with a proper ConcatenatingTokenFilter, 
but for now I've duplicated Token as a package-private class in 
analysis.miscellanous.
* In the solr spellcheck API.  Here, I've copied Token into the solr.spelling 
package and undeprecated.

> Remove deprecated Token class
> -----------------------------
>
>                 Key: LUCENE-7867
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7867
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: master (7.0)
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>         Attachments: LUCENE-7867.patch
>
>
> The Token class has been sitting around deprecated since 2.9.  We should nuke 
> it already.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to