You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alan Woodward (Jira)" <ji...@apache.org> on 2021/05/26 09:49:00 UTC

[jira] [Commented] (LUCENE-9545) Remove Analyzer.get/setVersion()

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

Alan Woodward commented on LUCENE-9545:
---------------------------------------

Nudging this one back to life again with a PR: https://github.com/apache/lucene/pull/154/files

> Remove Analyzer.get/setVersion()
> --------------------------------
>
>                 Key: LUCENE-9545
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9545
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>
> In days of yore, some lucene Analyzers would change their behaviour depending on a version constant, so you could say 'use this analyzer in the way that it would have worked in lucene 2.1'.  However, we have no Analyzers that make use of this in the 9x or 8x lines, and I think it's pretty confusing behaviour anyway.  We have factories to configure analyzers, and version-specific behaviour can reside there if we really need it.  We should just remove this functionality from Analyzer altogether.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org