MeiliSearch/src/index/mod.rs

20 lines
373 B
Rust
Raw Normal View History

2021-03-04 11:56:32 +01:00
mod search;
mod updates;
use std::sync::Arc;
use std::ops::Deref;
pub use search::{SearchQuery, SearchResult, DEFAULT_SEARCH_LIMIT};
pub use updates::{Settings, Facets, UpdateResult};
#[derive(Clone)]
pub struct Index(pub Arc<milli::Index>);
impl Deref for Index {
type Target = milli::Index;
fn deref(&self) -> &Self::Target {
self.0.as_ref()
}
}