Skip to content

Commit

Permalink
Enabled reloading functionality for reloading KNNVectorsFormat SPIs f…
Browse files Browse the repository at this point in the history
…rom plugins (opensearch-project#13864)

Signed-off-by: Navneet Verma <navneev@amazon.com>
  • Loading branch information
navneet1v authored and wangdongyu.danny committed Aug 22, 2024
1 parent 1be6e0b commit 74855eb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.apache.logging.log4j.Logger;
import org.apache.lucene.codecs.Codec;
import org.apache.lucene.codecs.DocValuesFormat;
import org.apache.lucene.codecs.KnnVectorsFormat;
import org.apache.lucene.codecs.PostingsFormat;
import org.apache.lucene.util.SPIClassIterator;
import org.opensearch.Build;
Expand Down Expand Up @@ -762,6 +763,7 @@ static void reloadLuceneSPI(ClassLoader loader) {
// Codecs:
PostingsFormat.reloadPostingsFormats(loader);
DocValuesFormat.reloadDocValuesFormats(loader);
KnnVectorsFormat.reloadKnnVectorsFormat(loader);
Codec.reloadCodecs(loader);
}

Expand Down

0 comments on commit 74855eb

Please sign in to comment.