quickwit-oss/tantivy

on android: OS error 38 - function not implemented

Sivan22 opened this issue · 4 comments

Describe the bug
i am using the library in my flutter app, through flutter_rust_bridge. it compiles and runs, but when trying to search i get the following error: Error: PanicException(Failed to create index reader: LockFailure(loError(Os {code:38, kind:Unsupported,message:"Function not implemented"}),None))

Which version of tantivy are you using?
0.22.0

To Reproduce

This is probably related to directory locking. What Directory implementation do you use?

use tantivy::directory::MmapDirectory

let mmap_directory = MmapDirectory::open(path).expect("unable to open mmap directory"); let index = Index::open_or_create(mmap_directory, schema.clone()); let index = index.expect("Failed to create index").clone(); let index_reader = index.reader().expect("Failed to create index reader");

So my question is: what is status of supporting Mmap Directory on android? (the RamDirectory works as expected)

It is not supported