The operation Remove-Documentsdeletes documents based on a unique source key (sourceKey)from the database.
Input
The adapter excepts an XML document with the following structure as input.
<x4ai_adapter>
<sourceKey>DonQuixote</sourceKey>
<sourceKey>Faust</sourceKey>
<sourceKey>Hamlet</sourceKey>
</x4ai_adapter>
The following elements can be contained in the input:
|
Element |
Description |
|---|---|
|
|
Enclosing element for the input of the operation |
|
|
Uniquw source key to identify the document to be deleted. Add the unique document name here. Possible values: String Example:
|
Output
The adapter generates a XML document as output:
<?xml version="1.0" encoding="UTF-8"?>
<output>
<response>
<num_deleted>3</num_deleted>
</response>
</output>
The following elements can be contained in the output:
|
Element |
Description |
|---|---|
|
|
Enclosing element for the output of the operation |
|
|
Enclosing element for the element |
|
|
Number of deleted documents.
|