opensearch-project / k-NN

🆕 Find the k-nearest neighbors (k-NN) for your vector data
https://opensearch.org/docs/latest/search-plugins/knn/index/
Apache License 2.0
156 stars 123 forks source link

Fix k-NN build due to lucene upgrade #2193

Closed navneet1v closed 1 month ago

navneet1v commented 1 month ago

Description

Whenever there are new codec added in Lucene, Lucene changes the imports for the old codec and move then under backward_codec package path. This breaks the k-NN build as we need to update the codec imports and also need to add the new codec. Adding of new codec is required because there are new formats that are added by Lucene and we want to ensure that an index using k-NN codec is using the latest formats from lucene.

navneet1v commented 1 month ago

Since the PR is merged. Please ensure that you do following things to fix your local:

  1. Remove the gradle cache. This can be done by cd ~/.gradle and then rm -rf caches
  2. Remove the build folder from the local k-NN repo.