Introduce a basically working rkv based MeiliDB

This commit is contained in:
Clément Renault
2019-10-02 17:34:32 +02:00
parent 905bc5c1a6
commit 39e0d9fc4a
22 changed files with 2287 additions and 0 deletions

23
src/store/synonyms.rs Normal file
View File

@ -0,0 +1,23 @@
pub struct Synonyms {
pub(crate) main: rkv::SingleStore,
pub(crate) synonyms: rkv::SingleStore,
}
impl Synonyms {
pub fn synonyms_fst<T: rkv::Readable>(
&self,
reader: &T,
) -> Result<fst::Set, rkv::StoreError>
{
Ok(fst::Set::default())
}
pub fn alternatives_to<T: rkv::Readable>(
&self,
reader: &T,
word: &[u8],
) -> Result<Option<fst::Set>, rkv::StoreError>
{
unimplemented!()
}
}