mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-05-15 00:33:57 +02:00
Erase a document if the AST is set
This commit is contained in:
parent
e755e25847
commit
446b9c142c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user