mirror of https://github.com/apache/lucene.git
Disable byte encoding in TestSimpleTextKnnVectorsFormat
This commit is contained in:
parent
653d2ebf71
commit
df67223497
|
@ -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 BaseKnnVectorsFormatTestCase
|
|||
return 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())) {
|
||||
|
|
Loading…
Reference in New Issue