Erase a document if the AST is set

This commit is contained in:
Clément Renault
2025-04-16 23:12:31 +02:00
parent e755e25847
commit 446b9c142c

View File

@ -596,7 +596,7 @@ impl<'pl> PayloadOperations<'pl> {
return Ok(None);
};
if self.is_new {
if self.is_new || ast.is_some() {
Ok(Some(DocumentChange::Insertion(Insertion::create(
self.docid,
external_doc,