Open heemin32 opened 1 month ago
For nested field, OpenSearch convert parent filter bitset to int array before passing it to JNI layer. https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/query/KNNWeight.java#L190C19-L190C36
We might be able to use the bitset directly from faiss engine without converting its format. This could save the both cpu and memory usage.
LGTM
For nested field, OpenSearch convert parent filter bitset to int array before passing it to JNI layer. https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/query/KNNWeight.java#L190C19-L190C36
We might be able to use the bitset directly from faiss engine without converting its format. This could save the both cpu and memory usage.