mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-05 02:55:46 +01:00
24 lines
481 B
Rust
24 lines
481 B
Rust
|
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!()
|
||
|
}
|
||
|
}
|