Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for ef_search query parameter in FAISS engine (opensearc…
…h-project#1707) * Adds support for ef_search as a query parameter in faiss engine Signed-off-by: Tejas Shah <[email protected]> * Fixing checkstyle Signed-off-by: Tejas Shah <[email protected]> * Corrects imports Signed-off-by: Tejas Shah <[email protected]> * Adds unit test for faiss_wrapper for queryIndex and queryIndexWithFilter methods This unit test specifically focuses on the changes related to ef_search Detailed assertions related to grouper and selector can be picked up later. Tests related to any other methods are not added Signed-off-by: Tejas Shah <[email protected]> * Gates efSearch behind 2.15 version to make sure there is backward compatibility during upgrades Signed-off-by: Tejas Shah <[email protected]> * Adds faiss_wrapper_unit_test.cpp in CmakeList Signed-off-by: Tejas Shah <[email protected]> * Adds change log Signed-off-by: Tejas Shah <[email protected]> * Adds BWC tests for efSearch Signed-off-by: Tejas Shah <[email protected]> * Removes EfSearch validation from rolling upgrade test for Mixed cluster state Customers are not expected use the query with new parameters unless its fully upgraded. Signed-off-by: Tejas Shah <[email protected]> * Changing minimum version required for efSearch to be 3.0.0 This makes sure that bwc passes in the PR. will be changed to 2.15 to once this is merged to 2.x Signed-off-by: Tejas Shah <[email protected]> * Fixes the checkstyle failure Signed-off-by: Tejas Shah <[email protected]> * Adds method_parameter in knn search request. method_parameters will be used to hold shard level algorithm parameters Signed-off-by: Tejas Shah <[email protected]> * Updates the documentation for faiss wrapper Signed-off-by: Tejas Shah <[email protected]> * Stubs out method parameter parsing logic into its own class Signed-off-by: Tejas Shah <[email protected]> * Adds method parameters and validates against engine specific parameters Signed-off-by: Tejas Shah <[email protected]> * Removes engine and method functions from EngineSpecificMethodContext Signed-off-by: Tejas Shah <[email protected]> * - Does not throw in case of illegal state exception if method is null - Changes HnswContext to DefaultHnswContext - corrects * imports Signed-off-by: Tejas Shah <[email protected]> --------- Signed-off-by: Tejas Shah <[email protected]>
- Loading branch information