meilisearch/src/lib.rs
2018-08-25 17:00:05 +02:00

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,
}