Skip to content

Conversation

@mccullocht
Copy link
Owner

Do this in the backwards_codecs package. It's a bit weird but wouldn't be a big deal when building a fork of Lucene.

Note that Lucene99Codec still exists and we may wrap it in a FilterCodec, so to deploy new Lucene103Codec
we may need to construct a different object at startup to pass to IndexWriter.

It should be possible to test the base codec works as expected by writing a test that creates a new writer of each
underlying codec type. I think this would have to take the form of a test that runs a series of CRUD operations to
trigger each format because it is not possible for an outsider to create a valid SegmentWriteState, although maybe
we could just test that UnsupportedOperationException is not thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants