From c4def70444977ca2a235f6524069b092afba5071 Mon Sep 17 00:00:00 2001 From: Weston Pace Date: Mon, 24 Jun 2024 14:16:20 -0700 Subject: [PATCH] feat: expose DatasetPreFilter, PreFilter, and FilterLoader to the public API (#2522) A [recent change](https://github.com/lancedb/lance/commit/36c08d586d51a77b0ef5b67adac86f709ff9241b) moved these types out of the public API of `lance_index` and into the private API of `lance`. This broke a customer (full disclosure, us) that was relying on these types. These types are well documented and straightforward. I think they were intended to be part of a public API. However, I could be wrong. Exposing them allows users to supply their own prefilter implementations when using `lance_index` utilities directly. I think it would be fair to call the API experimental if we want to but the prefilter has been stable for a bit. --- rust/lance/src/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/lance/src/index.rs b/rust/lance/src/index.rs index 88f635377a..e4886ad312 100644 --- a/rust/lance/src/index.rs +++ b/rust/lance/src/index.rs @@ -36,7 +36,7 @@ use vector::ivf::v2::IVFIndex; pub(crate) mod append; pub(crate) mod cache; -pub(crate) mod prefilter; +pub mod prefilter; pub mod scalar; pub mod vector;