Managing Imported Data
In this tutorial, you’ll learn how to manage your imported data, including how to update and delete documents.
Managing document unique identity
We recommend including an id
field with every document, as it makes it easier to reliably reference the document later.
If you plan to update or delete existing documents, you should always provide an id
.
If an id
was not supplied, updates or deletions are still possible. However, in that case the following fields must remain unchanged:
content.title
url
originPlatform
contentType
id
(you cannot add anid
retroactively)
If any of these identity fields are modified, we will not be able to match the original document. This will either create a duplicate (in the case of an update) or prevent deletion.
Updating imported documents
To update a document, simply resubmit it with the same values for the identity fields listed above.
Deleting imported documents
To delete a document, resend it (complete document) with the following property set:
{
"delete": true
}
As with updates, the identity fields listed above must also remain unchanged.