[
https://issues.apache.org/jira/browse/SOLR-6131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14017663#comment-14017663
]
Spyros Kapnissis commented on SOLR-6131:
----------------------------------------
Not sure it's that easy. There are a lot of places that it is still being used,
even though it's obsolete since version 2.9. Any refactoring has to happen
incrementally imo. This patch is specifically for the solr.spelling package.
> Remove deprecated Token class from solr.spelling package
> --------------------------------------------------------
>
> Key: SOLR-6131
> URL: https://issues.apache.org/jira/browse/SOLR-6131
> Project: Solr
> Issue Type: Improvement
> Components: spellchecker
> Affects Versions: 4.8.1
> Reporter: Spyros Kapnissis
> Priority: Minor
> Labels: spellchecker
> Attachments: NukeToken.patch, SOLR-6131.patch
>
>
> The deprecated Token class is used everywhere in the spelling package. I am
> attaching a patch that refactors/replaces all occurrences with the
> AttributeSource class. The tests are passing.
> Note: the AttributeSource class also replaces Token as a hash key in many
> places. Having stricter equals/hashCode requirements than Token, I am a bit
> concerned that it could produce some duplicate suggestions, especially in the
> case of ConjunctionSolrSpellChecker where merging of the different spell
> checking suggestions takes place. If this initial approach is fine, I can
> create some extra checks/unit tests for this.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]