Skip to content

Commit b886faa

Browse files
committed
Add classes removed in Lucene 10.4
1 parent 30deccf commit b886faa

File tree

4 files changed

+2071
-3
lines changed

4 files changed

+2071
-3
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/ES814ScalarQuantizedVectorsFormat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
import org.apache.lucene.codecs.hnsw.FlatVectorsWriter;
1818
import org.apache.lucene.codecs.hnsw.ScalarQuantizedVectorScorer;
1919
import org.apache.lucene.codecs.lucene99.Lucene99FlatVectorsFormat;
20-
import org.apache.lucene.codecs.lucene99.Lucene99ScalarQuantizedVectorsReader;
21-
import org.apache.lucene.codecs.lucene99.Lucene99ScalarQuantizedVectorsWriter;
2220
import org.apache.lucene.index.ByteVectorValues;
2321
import org.apache.lucene.index.FieldInfo;
2422
import org.apache.lucene.index.FloatVectorValues;
@@ -40,7 +38,6 @@
4038
import java.io.IOException;
4139
import java.util.Map;
4240

43-
import static org.apache.lucene.codecs.lucene99.Lucene99ScalarQuantizedVectorsFormat.DYNAMIC_CONFIDENCE_INTERVAL;
4441
import static org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper.MAX_DIMS_COUNT;
4542

4643
public class ES814ScalarQuantizedVectorsFormat extends FlatVectorsFormat {
@@ -60,6 +57,9 @@ public class ES814ScalarQuantizedVectorsFormat extends FlatVectorsFormat {
6057
/** The maximum confidence interval */
6158
private static final float MAXIMUM_CONFIDENCE_INTERVAL = 1f;
6259

60+
/** Dynamic confidence interval */
61+
public static final float DYNAMIC_CONFIDENCE_INTERVAL = 0f;
62+
6363
/**
6464
* Controls the confidence interval used to scalar quantize the vectors the default value is
6565
* calculated as `1-1/(vector_dimensions + 1)`

0 commit comments

Comments
 (0)