From 312c7cc142ef3460bd89443703b15c2f54810fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 16 Apr 2025 23:12:31 +0200 Subject: [PATCH] Erase a document if the AST is set --- crates/milli/src/update/new/indexer/document_operation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/milli/src/update/new/indexer/document_operation.rs b/crates/milli/src/update/new/indexer/document_operation.rs index 0a07ca9a2..4fead4f0c 100644 --- a/crates/milli/src/update/new/indexer/document_operation.rs +++ b/crates/milli/src/update/new/indexer/document_operation.rs @@ -613,7 +613,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,