mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-30 18:38:29 +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);
|
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user