mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
fix search
This commit is contained in:
parent
d22fab5bae
commit
334933b874
2 changed files with 18 additions and 5 deletions
|
@ -8,7 +8,7 @@ use chrono::{DateTime, Utc};
|
|||
use dashmap::DashMap;
|
||||
use heed::types::{Str, SerdeBincode};
|
||||
use heed::{EnvOpenOptions, Env, Database};
|
||||
use milli::Index;
|
||||
use milli::{Index, FieldsIdsMap};
|
||||
use serde::{Serialize, Deserialize};
|
||||
|
||||
use crate::data::{SearchQuery, SearchResult};
|
||||
|
@ -113,6 +113,18 @@ impl<'a, U: UpdateStore> IndexView<'a, U> {
|
|||
|
||||
Ok(search.execute()?)
|
||||
}
|
||||
|
||||
pub fn fields_ids_map(&self) -> Result<FieldsIdsMap> {
|
||||
self.index.fields_ids_map(self.txn)
|
||||
}
|
||||
|
||||
pub fn fields_displayed_fields_ids(&self) -> Result<FieldsIdsMap> {
|
||||
self.index.fields_displayed_fields_ids(self.txn)
|
||||
}
|
||||
|
||||
pub fn documents(&self, ids: &[u32]) -> Result<Vec<()>> {
|
||||
self.index.documents(self.txn, ids)
|
||||
}
|
||||
}
|
||||
|
||||
impl<U: UpdateStore> IndexController<U> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue