Files
Gilbert Gilb's f72867d4ab support SearchParameters for IndexBinary (#4761)
Summary:
- Add support ParameterSpace for IndexBinaryHNSW and IndexBinaryIVF
- Add support SearchParameters in search() method for IndexBinaryHNSW and IndexBinaryIVF
- Add support for passing parameters to IndexBinaryHNSW and IndexBinaryIVF from CAPI

fixes https://github.com/facebookresearch/faiss/issues/3503

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4761

Reviewed By: mdouze

Differential Revision: D91060658

Pulled By: juancarpio27

fbshipit-source-id: f8cd87fc020d410bf2982636d2aa393e6d7e3410
2026-02-04 00:03:15 -08:00

41 lines
1.1 KiB
C

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// -*- c -*-
#ifndef FAISS_INDEX_HNSW_C_H
#define FAISS_INDEX_HNSW_C_H
#include "Index_c.h"
#include "faiss_c.h"
#include "impl/AuxIndexStructures_c.h"
#ifdef __cplusplus
extern "C" {
#endif
FAISS_DECLARE_CLASS_INHERITED(SearchParametersHNSW, SearchParameters)
FAISS_DECLARE_DESTRUCTOR(SearchParametersHNSW)
FAISS_DECLARE_SEARCH_PARAMETERS_DOWNCAST(SearchParametersHNSW)
int faiss_SearchParametersHNSW_new(FaissSearchParametersHNSW** p_sp);
int faiss_SearchParametersHNSW_new_with(
FaissSearchParametersHNSW** p_sp,
FaissIDSelector* sel,
int efSearch);
FAISS_DECLARE_GETTER(SearchParametersHNSW, const FaissIDSelector*, sel)
FAISS_DECLARE_GETTER_SETTER(SearchParametersHNSW, int, efSearch)
FAISS_DECLARE_GETTER_SETTER(SearchParametersHNSW, int, check_relative_distance)
FAISS_DECLARE_GETTER_SETTER(SearchParametersHNSW, int, bounded_queue)
#ifdef __cplusplus
}
#endif
#endif