Hi, > > I should have mentioned that I for compatibility reasons still need to > > be able to read/write indexes created with the old version, i.e., with > > the 5.0 codec.
The old codecs are read-only! As said before, you can only specify the codec for IndexWriter. That means new segemnts to already existing indexes will automatically use the new codec. Old segments already in your index will stay with the old codec, until they are merged away, in which case they are implicitly upgraded. As the Lucene 5 codec is read only, it is impossible to create a new index (or modify an existing index) in a way that it will still be readable with Lucene 5. As soon as you touch an index with the new codec, it will be mixed codec versions and cannot be read with old version. But Lucene 6 will happily handle the mixed codec index - it is designed for that use case (default-codec indexes will behave the same way). 😊 Uwe --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org