mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-12-02 10:05:05 +08:00
29 lines
576 B
Rust
29 lines
576 B
Rust
#[macro_use] extern crate serde_derive;
|
|
extern crate bincode;
|
|
extern crate fst;
|
|
extern crate levenshtein_automata;
|
|
extern crate serde;
|
|
|
|
pub mod map;
|
|
mod levenshtein;
|
|
|
|
pub use self::map::{Map, MapBuilder, Values};
|
|
pub use self::map::{
|
|
OpBuilder, IndexedValues,
|
|
OpWithStateBuilder, IndexedValuesWithState,
|
|
};
|
|
|
|
pub use self::levenshtein::LevBuilder;
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
pub struct Value {
|
|
pub id: u64,
|
|
pub attr_index: AttrIndex,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
pub struct AttrIndex {
|
|
pub attribute: u8,
|
|
pub index: u64,
|
|
}
|