mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 09:04:59 +08:00
20 lines
373 B
Rust
20 lines
373 B
Rust
|
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()
|
||
|
}
|
||
|
}
|