ここでは、addOrUpdateRecordsサブ操作について説明します。
<ingestChanges>
<addOrUpdateRecords>
<recordSpecifier>
<attribute name="?" type="?">?</attribute>
</recordSpecifier>
<addAssignments>
<attribute name="?" type="?">?</attribute>
</ns:addAssignments>
</addOrUpdateRecords>
</ingestChanges>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://www.endeca.com/MDEX/ingest/3/0"
xmlns:ns1="http://www.endeca.com/MDEX/XQuery/2009/09">
<soapenv:Header/>
<soapenv:Body>
<ns:ingestChanges>
<ns:addOrUpdateRecords>
<ns:recordSpecifier>
<ns1:attribute name="partID">8345</ns1:attribute>
</ns:recordSpecifier>
<ns:addAssignments>
<ns1:attribute name="color">blue</ns1:attribute>
<ns1:attribute name="price">29.99</ns1:attribute>
</ns:addAssignments>
</ns:addOrUpdateRecords>
</ns:ingestChanges>
</soapenv:Body>
</soapenv:Envelope>
キー/値割当てで属性タイプ(price属性のタイプ、つまり mdex:doubleなど)を指定していないことに注意してください。この理由は、すべての属性がデータ・ドメインにすでに存在するため、初期作成時に割り当てられたタイプがすでにあるからです(特に指定がない場合は、デフォルトのstringタイプが使用されます)。割当て属性値のタイプは、属性のタイプに一致している必要があります。