tantivy-py icon indicating copy to clipboard operation
tantivy-py copied to clipboard

[feature request] Expose means of configuring/providing a custom Object Store extension

Open alexkohler opened this issue 1 year ago • 7 comments

Hi there, I'm a user of lancedb, which leverages tantivy-py for full text search indices (see https://lancedb.github.io/lancedb/fts). A current shortcoming of the lancedb FTS support is that it's only supported for local file paths (something like S3 is not supported).

The lance maintainers have authored an Object Store extension , but as I understand it, there's no means of specifying/providing this extension within tantivy-py. Would love if this could be supported!

alexkohler avatar Jan 25 '24 01:01 alexkohler

LanceDB maintainer here. We'd be happy to contribute if you can point us to the right place to configure the underlying tantivy rust to integrate this extension. thanks!

changhiskhan avatar Jan 25 '24 01:01 changhiskhan

I'm also in need of this feature. Any idea when it will be schedule?

dgarnitz avatar Feb 04 '24 21:02 dgarnitz

Also very much interested!

dtiarks avatar Mar 01 '24 08:03 dtiarks

Also interested

erixison avatar Mar 08 '24 01:03 erixison

+1

zmtbnv avatar Mar 17 '24 07:03 zmtbnv

I'm looking at the example here: https://github.com/lancedb/tantivy-object-store/blob/main/examples/index_wiki_local.rs

    <snip>
    let dir = new_object_store_directory(
        Arc::new(LocalFileSystem::new()),
        dir.path().to_str().unwrap(),
        None,
        0,
        None,
        None,
    )
    .unwrap();

    let index_using_object_store =
        tantivy::Index::create(dir, schema.clone(), IndexSettings::default()).unwrap();
        
    let mut writer = index_using_object_store.writer(1024 * 1024 * 1024).unwrap();
    <snip>

The only difference is the dir object that is passed to Index::create(), is that correct?

cjrh avatar Mar 19 '24 23:03 cjrh

Hi LanceDB Developers, would you happy to create a PyO3 bindings in Python for your tantivy-object-store crate? I'm very willing to help

alex-au-922 avatar Jun 06 '24 15:06 alex-au-922