2020-08-12 10:43:02 +02:00
|
|
|
mod criterion;
|
2020-10-22 12:50:04 +02:00
|
|
|
mod fields_ids_map;
|
2020-10-21 15:55:48 +02:00
|
|
|
mod index;
|
2020-10-01 16:28:49 +02:00
|
|
|
mod mdfs;
|
2020-06-05 09:48:46 +02:00
|
|
|
mod query_tokens;
|
2020-08-13 14:15:05 +02:00
|
|
|
mod search;
|
2020-08-28 14:16:37 +02:00
|
|
|
pub mod heed_codec;
|
2020-09-22 10:53:20 +02:00
|
|
|
pub mod proximity;
|
2020-10-19 13:44:17 +02:00
|
|
|
pub mod subcommand;
|
2020-08-30 21:50:30 +02:00
|
|
|
pub mod tokenizer;
|
2020-10-25 18:32:01 +01:00
|
|
|
pub mod update;
|
2020-06-04 20:25:51 +02:00
|
|
|
|
2020-10-31 16:10:15 +01:00
|
|
|
use std::borrow::Cow;
|
2020-08-13 14:15:05 +02:00
|
|
|
use std::collections::HashMap;
|
2020-05-31 16:09:34 +02:00
|
|
|
use std::hash::BuildHasherDefault;
|
2020-10-31 16:10:15 +01:00
|
|
|
|
2020-06-29 22:25:59 +02:00
|
|
|
use fxhash::{FxHasher32, FxHasher64};
|
2020-06-04 20:25:51 +02:00
|
|
|
|
2020-08-13 14:15:05 +02:00
|
|
|
pub use self::criterion::{Criterion, default_criteria};
|
2020-10-23 14:11:00 +02:00
|
|
|
pub use self::fields_ids_map::FieldsIdsMap;
|
2020-10-21 15:55:48 +02:00
|
|
|
pub use self::index::Index;
|
|
|
|
pub use self::search::{Search, SearchResult};
|
2020-09-07 15:42:20 +02:00
|
|
|
pub use self::heed_codec::{
|
2020-10-22 14:23:33 +02:00
|
|
|
RoaringBitmapCodec, BEU32StrCodec, StrStrU8Codec,
|
|
|
|
ObkvCodec, BoRoaringBitmapCodec, CboRoaringBitmapCodec,
|
2020-09-07 15:42:20 +02:00
|
|
|
};
|
2020-10-25 18:32:01 +01:00
|
|
|
pub use self::update::UpdateStore;
|
2020-05-31 16:09:34 +02:00
|
|
|
|
|
|
|
pub type FastMap4<K, V> = HashMap<K, V, BuildHasherDefault<FxHasher32>>;
|
2020-06-29 22:25:59 +02:00
|
|
|
pub type FastMap8<K, V> = HashMap<K, V, BuildHasherDefault<FxHasher64>>;
|
2020-05-31 16:09:34 +02:00
|
|
|
pub type SmallString32 = smallstr::SmallString<[u8; 32]>;
|
2020-06-11 11:55:03 +02:00
|
|
|
pub type SmallVec32<T> = smallvec::SmallVec<[T; 32]>;
|
|
|
|
pub type SmallVec16<T> = smallvec::SmallVec<[T; 16]>;
|
2020-05-31 16:09:34 +02:00
|
|
|
pub type BEU32 = heed::zerocopy::U32<heed::byteorder::BE>;
|
2020-10-18 15:16:57 +02:00
|
|
|
pub type BEU64 = heed::zerocopy::U64<heed::byteorder::BE>;
|
2020-05-31 16:09:34 +02:00
|
|
|
pub type DocumentId = u32;
|
2020-08-06 11:08:24 +02:00
|
|
|
pub type Attribute = u32;
|
2020-07-07 12:21:22 +02:00
|
|
|
pub type Position = u32;
|
2020-10-31 16:10:15 +01:00
|
|
|
|
|
|
|
type MergeFn = for<'a> fn(&[u8], &[Cow<'a, [u8]>]) -> anyhow::Result<Vec<u8>>;
|