Skip to content

Commit

Permalink
Fixing some of the things from merge side for KNNVectorValues
Browse files Browse the repository at this point in the history
Signed-off-by: Navneet Verma <navneev@amazon.com>
  • Loading branch information
navneet1v committed Aug 29, 2024
1 parent ab1ee62 commit ff8e7c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/opensearch/knn/index/KNNSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ public class KNNSettings {
public static final Setting<Boolean> KNN_USE_LUCENE_VECTOR_FORMAT_ENABLED_SETTING = Setting.boolSetting(
KNN_USE_LUCENE_VECTOR_FORMAT_ENABLED,
false,
NodeScope
NodeScope,
Dynamic
);

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public void flush(int maxDoc, final Sorter.DocMap sortMap) throws IOException {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
flatVectorsWriter.flush(maxDoc, sortMap);
flatVectorsWriter.finish();
for (final NativeEngineFieldVectorsWriter<?> field : fields) {
trainAndIndex(
field.getFieldInfo(),
Expand Down

0 comments on commit ff8e7c4

Please sign in to comment.