fix: specify column to search for FTS (#1572)

Before this we ignored the `fts_columns` parameter, and for now we
support to search on only one column, it could lead to an error if we
have multiple indexed columns for FTS

---------

Signed-off-by: BubbleCal <bubble-cal@outlook.com>
This commit is contained in:
BubbleCal
2024-08-29 23:43:46 +08:00
committed by GitHub
parent bfe8fccfab
commit 1521435193
5 changed files with 136 additions and 21 deletions

View File

@@ -98,6 +98,13 @@ impl Index {
inner: Mutex::new(Some(LanceDbIndex::LabelList(Default::default()))),
})
}
#[staticmethod]
pub fn fts() -> PyResult<Self> {
Ok(Self {
inner: Mutex::new(Some(LanceDbIndex::FTS(Default::default()))),
})
}
}
#[pyclass(get_all)]