feat(python): support post filter on FTS (#1783)

This commit is contained in:
Will Jones
2024-11-01 10:05:05 -07:00
committed by GitHub
parent 96181ab421
commit 15ed7f75a0
6 changed files with 79 additions and 52 deletions

View File

@@ -72,6 +72,10 @@ impl Query {
self.inner = self.inner.clone().fast_search();
}
pub fn postfilter(&mut self) {
self.inner = self.inner.clone().postfilter();
}
pub fn nearest_to(&mut self, vector: Bound<'_, PyAny>) -> PyResult<VectorQuery> {
let data: ArrayData = ArrayData::from_pyarrow_bound(&vector)?;
let array = make_array(data);