mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08: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