mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-31 15:31:53 +08:00
24 lines
465 B
Rust
24 lines
465 B
Rust
#[derive(Copy, Clone)]
|
|
pub struct Synonyms {
|
|
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!()
|
|
}
|
|
}
|