mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-10 21:56:27 +00:00
Erase a document if the AST is set
This commit is contained in:
committed by
Kerollmops
parent
8aeeb4d172
commit
312c7cc142
@@ -613,7 +613,7 @@ impl<'pl> PayloadOperations<'pl> {
|
|||||||
return Ok(None);
|
return Ok(None);
|
||||||
};
|
};
|
||||||
|
|
||||||
if self.is_new {
|
if self.is_new || ast.is_some() {
|
||||||
Ok(Some(DocumentChange::Insertion(Insertion::create(
|
Ok(Some(DocumentChange::Insertion(Insertion::create(
|
||||||
self.docid,
|
self.docid,
|
||||||
external_doc,
|
external_doc,
|
||||||
|
Reference in New Issue
Block a user