Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need tests to ensure 2-way index/codec compatibility with Lucene #128

Open
bongohrtech opened this issue Aug 12, 2019 · 0 comments
Open

Comments

@bongohrtech
Copy link
Owner

Lucene came with several tests to ensure backward compatibility with indexes, and included many zipped index archives which are used to ensure Lucene.NET can read indexes that were produced by Lucene.

However, we have no tests to ensure that indexes produced by Lucene.NET 4.8.0 can be read by Lucene 4.8.0.

A way this could be done:

1. Create a command line utility that is part of the Lucene.NET build that produces a series of test index cases (at least 1 case per codec/doc values format/postings format combination). Unlike the existing compatibility tests that zip the indexes into embedded resources, we should be creating indexes based on the current build of Lucene.NET.
2. Create a Java/JUnit test project that depends on Lucene 4.8.0 and add a test per test case.
3. Add build/test tasks to azure-pipelines.yml to run the .NET utility to produce the indexes and then execute Java/JUnit tests on each target framework/OS/platform

These tests should be designed in such a way that when we upgrade to the next version of Lucene the tests are simple to upgrade as well.

JIRA link - [LUCENENET-613] created by nightowl888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant