mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
Support aborting documents edition by function
This commit is contained in:
parent
33fa17bf12
commit
2eae2015d7
@ -236,6 +236,10 @@ where
|
||||
};
|
||||
|
||||
for docid in documents {
|
||||
if (self.should_abort)() {
|
||||
return Err(Error::InternalError(InternalError::AbortedIndexation));
|
||||
}
|
||||
|
||||
let (document, document_object, document_id) =
|
||||
match self.index.documents.get(self.wtxn, &docid)? {
|
||||
Some(obkv) => {
|
||||
|
Loading…
Reference in New Issue
Block a user