The initial load user case assumes that you are loading records into an empty MDEX Engine.
<ingest:ingestRecords
xmlns:ingest="http://www.endeca.com/MDEX/ingest/2010"
xmlns:mdex="http://www.endeca.com/MDEX/XQuery/2009/09">
<ingest:primaryKeys>
<ingest:primaryKey name="partID"/>
<ingest:primaryKey name="supplierID"/>
</ingest:primaryKeys>
<ingest:addAssignments>
<mdex:record>
<partID type="mdex:string">P123</partID>
<modelNum type="mdex:int">2562</modelNum>
</mdex:record>
<mdex:record>
<supplierID type="mdex:string">S456</supplierID>
<location type="mdex:geocode">42.365615 -71.075647</location>
</mdex:record>
</ingest:addAssignments>
</ingest:ingestRecords>
The request first creates the partID and supplierID primary-key attributes, and then adds two new records to the MDEX Engine. The primary key of the first record is partID=P123 while supplierID=S456 is the primary key of the second record. The request also creates two standard attributes (modelNum and location) because they do not exist in the MDEX Engine.
To load records into an empty MDEX Engine:
<ingest:ingestRecordsResponse xmlns:ingest="http://www.endeca.com/MDEX/ingest/2010"> <ingest:numPropertiesCreated>4</ingest:numPropertiesCreated> <ingest:numRecordsAffected>2</ingest:numRecordsAffected> <ingest:numRecordsDeleted>0</ingest:numRecordsDeleted> </ingest:ingestRecordsResponse>