Open navneet1v opened 1 month ago
Could you add a PR link merged in OpenSearch core which make this change possible?
Could you add a PR link merged in OpenSearch core which make this change possible?
There is no new change in Opensearch @heemin32. If you see we already have all the interfaces and required attributes flowing to KNNCodecService(ref description) its just that are not using it correctly as of now.
Description
Everytime a new version/Codec from Lucene is released in K-NN we go ahead and create classes for that codec. Ref: https://github.com/opensearch-project/k-NN/tree/main/src/main/java/org/opensearch/knn/index/codec
In this codec package of KNN we have few things:
FilterCodec
of Lucene.There are many other things but these are main parts.
Problem
As KNN is creating instance of its own Lucene codec if a user of Opensearch defines a specific Codec to use on the index, we ignore codec and use our own. Ref: https://github.com/opensearch-project/k-NN/blob/45e9e542aef60ef7073ee726e6ac14dec27bfa04/src/main/java/org/opensearch/knn/index/codec/KNNCodecVersion.java#L102
Resolution
Below are few things are required to be done here:
Tasks