Apache Lucene open-source search software
Disable byte encoding in TestSimpleTextKnnVectorsFormat
Julie Tibshiranidf6722349738
diff --git a/lucene/codecs/src/test/org/apache/lucene/codecs/simpletext/TestSimpleTextKnnVectorsFormat.java b/lucene/codecs/src/test/org/apache/lucene/codecs/simpletext/TestSimpleTextKnnVectorsFormat.javaindex 873e22990aa..83ca2eddd39 100644--- a/lucene/codecs/src/test/org/apache/lucene/codecs/simpletext/TestSimpleTextKnnVectorsFormat.java+++ b/lucene/codecs/src/test/org/apache/lucene/codecs/simpletext/TestSimpleTextKnnVectorsFormat.java@@ -20,6 +20,7 @@ import org.apache.lucene.codecs.Codec;import org.apache.lucene.document.Document;import org.apache.lucene.document.KnnVectorField;import org.apache.lucene.index.IndexWriter;+import org.apache.lucene.index.VectorEncoding;import org.apache.lucene.index.VectorSimilarityFunction;import org.apache.lucene.store.Directory;import org.apache.lucene.tests.index.BaseKnnVectorsFormatTestCase;@@ -30,6 +31,12 @@ public class TestSimpleTextKnnVectorsFormat extends BaseKnnVectorsFormatTestCasereturn new SimpleTextCodec();}+ @Override+ protected VectorEncoding randomVectorEncoding() {+ // TODO: Should SimpleTextKnnVectorsFormat support all encodings?+ return VectorEncoding.FLOAT32;+ }+public void testUnsupportedEncoding() throws Exception {try (Directory dir = newDirectory();IndexWriter iw = new IndexWriter(dir, newIndexWriterConfig())) {