Skip to content

Commit f6ee769

Browse files
committed
Use public constructor
1 parent 33fe50d commit f6ee769

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/es93/ES93HnswScalarQuantizedVectorsFormat.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ public KnnVectorsWriter fieldsWriter(SegmentWriteState state) throws IOException
8080
state,
8181
maxConn,
8282
beamWidth,
83-
new Lucene104ScalarQuantizedVectorsWriter(state, encoding, rawVectorFormat.fieldsWriter(state), flatVectorScorer) {
84-
},
83+
new Lucene104ScalarQuantizedVectorsWriter(state, encoding, rawVectorFormat.fieldsWriter(state), flatVectorScorer),
8584
numMergeWorkers,
8685
mergeExec,
8786
0

server/src/main/java/org/elasticsearch/index/codec/vectors/es93/ES93ScalarQuantizedVectorsFormat.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ public ES93ScalarQuantizedVectorsFormat(
6666

6767
@Override
6868
public KnnVectorsWriter fieldsWriter(SegmentWriteState state) throws IOException {
69-
return new Lucene104ScalarQuantizedVectorsWriter(state, encoding, rawVectorFormat.fieldsWriter(state), flatVectorScorer) {
70-
};
69+
return new Lucene104ScalarQuantizedVectorsWriter(state, encoding, rawVectorFormat.fieldsWriter(state), flatVectorScorer);
7170
}
7271

7372
@Override

0 commit comments

Comments
 (0)