mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-24 13:46:26 +00:00
Introduce a basically working rkv based MeiliDB
This commit is contained in:
23
src/store/synonyms.rs
Normal file
23
src/store/synonyms.rs
Normal 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!()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user