mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
Expose a function to be able to now the status of an update
This commit is contained in:
parent
6534a9ec1d
commit
2a4707d51e
@ -21,6 +21,7 @@ pub use self::number::{Number, ParseNumberError};
|
|||||||
pub use self::ranked_map::RankedMap;
|
pub use self::ranked_map::RankedMap;
|
||||||
pub use self::raw_document::RawDocument;
|
pub use self::raw_document::RawDocument;
|
||||||
pub use self::store::Index;
|
pub use self::store::Index;
|
||||||
|
pub use self::update::UpdateStatus;
|
||||||
|
|
||||||
use zerocopy::{AsBytes, FromBytes};
|
use zerocopy::{AsBytes, FromBytes};
|
||||||
use ::serde::{Serialize, Deserialize};
|
use ::serde::{Serialize, Deserialize};
|
||||||
|
@ -133,6 +133,20 @@ impl Index {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn update_status<T: rkv::Readable>(
|
||||||
|
&self,
|
||||||
|
reader: &T,
|
||||||
|
update_id: u64,
|
||||||
|
) -> MResult<update::UpdateStatus>
|
||||||
|
{
|
||||||
|
update::update_status(
|
||||||
|
reader,
|
||||||
|
self.updates,
|
||||||
|
self.updates_results,
|
||||||
|
update_id,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn query_builder(&self) -> QueryBuilder {
|
pub fn query_builder(&self) -> QueryBuilder {
|
||||||
QueryBuilder::new(self.main, self.postings_lists, self.synonyms)
|
QueryBuilder::new(self.main, self.postings_lists, self.synonyms)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user