データ・インジェストWebサービスでは、実行中のデータ・ドメインからレコードを削除できます。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.endeca.com/MDEX/ingest/2/0" xmlns:ns1="http://www.endeca.com/MDEX/XQuery/2009/09"> <soapenv:Header/> <soapenv:Body> <ns:ingestChanges> <ns:deleteRecords> <ns:recordSpecifier>?</ns:recordSpecifier> </ns:deleteRecords> </ns:ingestChanges> </soapenv:Body> </soapenv:Envelope>
同じリクエストで複数のレコードを削除できます。レコードの削除操作と、削除対象のレコードの変更を試みる操作を同じリクエストに含めることはできません。
外部トランザクションを開始するトランザクションWebサービスのリクエストの後に、ingestChangesリクエストを送信する場合、そのリクエストでは外部トランザクションIDを指定する必要があります。外部トランザクションが開始されていない場合、リクエストのID属性は省略する必要があります。
データ・ドメインからレコードを削除するには、次の手順を実行します。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.endeca.com/MDEX/ingest/2/0" xmlns:ns1="http://www.endeca.com/MDEX/XQuery/2009/09"> <soapenv:Header/> <soapenv:Body> <ns:ingestChanges> <ns:deleteRecords> <ns:recordSpecifier>"partID" = 'P123'</ns:recordSpecifier> </ns:deleteRecords> </ns:ingestChanges> </soapenv:Body> </soapenv:Envelope>
<ingest:ingestChangesResponse xmlns:ingest="http://www.endeca.com/MDEX/ingest/2/0"> <ingest:numPropertiesCreated>0</ingest:numPropertiesCreated> <ingest:numRecordsAffected>0</ingest:numRecordsAffected> <ingest:numRecordsDeleted>1</ingest:numRecordsDeleted> </ingest:ingestChangesResponse>
<ingest:ingestChangesResponse ...> ... <ingest:numRecordsDeleted>0</ingest:numRecordsDeleted> </ingest:ingestChangesResponse>