mirror of
https://github.com/lancedb/lancedb.git
synced 2026-05-18 20:40:41 +00:00
feat!: upgrade lance to 0.19.1 (#1762)
BREAKING CHANGE: default tokenizer no longer does stemming or stop-word removal. Users should explicitly turn that option on in the future. - upgrade lance to 0.19.1 - update the FTS docs - update the FTS API Upstream change notes: https://github.com/lancedb/lance/releases/tag/v0.19.1 --------- Signed-off-by: BubbleCal <bubble-cal@outlook.com> Co-authored-by: Will Jones <willjones127@gmail.com>
This commit is contained in:
@@ -54,12 +54,14 @@ pub struct LabelListIndexBuilder {}
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct FtsIndexBuilder {
|
||||
pub(crate) with_position: bool,
|
||||
pub tokenizer_configs: TokenizerConfig,
|
||||
}
|
||||
|
||||
impl Default for FtsIndexBuilder {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
with_position: true,
|
||||
tokenizer_configs: TokenizerConfig::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -72,4 +74,5 @@ impl FtsIndexBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
use lance_index::scalar::inverted::TokenizerConfig;
|
||||
pub use lance_index::scalar::FullTextSearchQuery;
|
||||
|
||||
@@ -1568,6 +1568,7 @@ impl NativeTable {
|
||||
let mut dataset = self.dataset.get_mut().await?;
|
||||
let fts_params = lance_index::scalar::InvertedIndexParams {
|
||||
with_position: fts_opts.with_position,
|
||||
tokenizer_config: fts_opts.tokenizer_configs,
|
||||
};
|
||||
dataset
|
||||
.create_index(
|
||||
@@ -2002,7 +2003,7 @@ impl TableInternal for NativeTable {
|
||||
self.dataset
|
||||
.get_mut()
|
||||
.await?
|
||||
.add_columns(transforms, read_columns)
|
||||
.add_columns(transforms, read_columns, None)
|
||||
.await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user