mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +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 {
|
for docid in documents {
|
||||||
|
if (self.should_abort)() {
|
||||||
|
return Err(Error::InternalError(InternalError::AbortedIndexation));
|
||||||
|
}
|
||||||
|
|
||||||
let (document, document_object, document_id) =
|
let (document, document_object, document_id) =
|
||||||
match self.index.documents.get(self.wtxn, &docid)? {
|
match self.index.documents.get(self.wtxn, &docid)? {
|
||||||
Some(obkv) => {
|
Some(obkv) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user