LUCENE-9614: Prevent TestKnnVectorQuery from using simple text codec (#244)

The simple text codec doesn't support kNN searches, so the test will fail when
we randomly chose to use it.
This commit is contained in:
Julie Tibshirani 2021-08-16 19:11:03 +03:00 committed by GitHub
parent 6993fb9a99
commit e48be684b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -35,8 +35,10 @@ import org.apache.lucene.index.RandomIndexWriter;
import org.apache.lucene.index.Term; import org.apache.lucene.index.Term;
import org.apache.lucene.store.Directory; import org.apache.lucene.store.Directory;
import org.apache.lucene.util.LuceneTestCase; import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
/** TestKnnVectorQuery tests KnnVectorQuery. */ /** TestKnnVectorQuery tests KnnVectorQuery. */
@SuppressCodecs("SimpleText") // The codec must support kNN searches
public class TestKnnVectorQuery extends LuceneTestCase { public class TestKnnVectorQuery extends LuceneTestCase {
public void testEquals() { public void testEquals() {