meilisearch/src/index/mod.rs

20 lines
373 B
Rust
Raw Normal View History

2021-03-04 18:56:32 +08: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()
}
}