mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-11 06:06:32 +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);
|
||||
};
|
||||
|
||||
if self.is_new {
|
||||
if self.is_new || ast.is_some() {
|
||||
Ok(Some(DocumentChange::Insertion(Insertion::create(
|
||||
self.docid,
|
||||
external_doc,
|
||||
|
Reference in New Issue
Block a user