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

Uwe Schindler edited comment on LUCENE-5934 at 9/10/14 1:40 PM:
----------------------------------------------------------------

Hi,
with my patch now the 4.0-ALPHA index (that declares as 4.0) is in fact failing 
with the above error message. The reason is that the default codec checks for 
Version.onOrAfter(LUCENE_4_0_0), which does not include 4.0-ALPHA and 4.0-BETA 
indexes.

To make this check correct, we have 2 possibilities: 
Version.onOrAfter(LUCENE_4_0_0_ALPHA) or - as suggested before - add 
Version.isMinimumLucene4() (the same applies to analyzers, but its not 
important here) - or hardcode 4.0 as string into the codec, so it hits 
everything.


was (Author: thetaphi):
Hi,
with my patch now the 4.0-ALPHA index (that declares as 4.0) is in fact failing 
with the above error message. The reason is that the default codec checks for 
Version.onOrAfter(LUCENE_4_0_0), which does not include 4.0-ALPHA and 4.0-BETA 
indexes.

To make this check correct, we have 2 possibilities: 
Version.onOrAfter(LUCENE_4_0_0_ALPHA) or - as suggested before - add 
Version.isMinimumLucene4() (the same applies to analyzers, but its not 
important here)

> 4.10 broke backwards compatibility for 4.0 indexes
> --------------------------------------------------
>
>                 Key: LUCENE-5934
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5934
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/codecs, core/index
>    Affects Versions: 4.10
>            Reporter: Robert Muir
>            Priority: Blocker
>             Fix For: 4.10.1, 4.11, 5.0
>
>         Attachments: LUCENE-5934.patch
>
>
> As reported by Ian on the user list:
> Its trying to treat them as 3.x



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