Managed attribute values are assigned to records similar to standard attributes.
The addRecords sub-operation can add managed attribute values to records. Likewise, the updateRecords and addOrUpdateRecords sub-operations (when used with a list of addAssignments elements) can add also add managed attribute values to records.
<attribute name="maName">maValueSpec</attribute>where:
Note that like standard attribute assignments, managed attribute value assignments can be updated, replaced, and deleted by ingestChanges operations.
<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:addRecords> <ns:record> <ns1:attribute name="partID">8344</ns1:attribute> <ns1:attribute name="Component">Derailleur</ns1:attribute> <ns1:attribute name="Component">Tire</ns1:attribute> <ns1:attribute name="Component">Michelin</ns1:attribute> <ns1:attribute name="Color">blue</ns1:attribute> </ns:record> </ns:addRecords> </ns:ingestChanges> </soapenv:Body> </soapenv:Envelope>
<cs:RecordListEntry> <cs:Record> <cs:attribute name="Color" type="mdex:string">blue</cs:attribute> <cs:attribute name="Component" type="mdex:string" displayName="derailleur gears">Derailleur</cs:attribute> <cs:attribute name="Component" type="mdex:string" displayName="Michelin brand">Michelin</cs:attribute> <cs:attribute name="Component" type="mdex:string" displayName="bicycle tires">Tire</cs:attribute> <cs:attribute name="partID" type="mdex:int">8344</cs:attribute> </cs:Record> <cs:ComputedProperties/> </cs:RecordListEntry> <cs:DimensionHierarchy> <cs:DimensionValueWithPath> <cs:DimensionValue DimensionName="Component" Spec="Derailleur">derailleur gears</cs:DimensionValue> <cs:DimensionValue DimensionName="Component" Spec="/">Parts</cs:DimensionValue> </cs:DimensionValueWithPath> <cs:DimensionValueWithPath> <cs:DimensionValue DimensionName="Component" Spec="Michelin">Michelin brand</cs:DimensionValue> <cs:DimensionValue DimensionName="Component" Spec="Tire">bicycle tires</cs:DimensionValue> <cs:DimensionValue DimensionName="Component" Spec="/">Parts</cs:DimensionValue> </cs:DimensionValueWithPath> <cs:DimensionValueWithPath> <cs:DimensionValue DimensionName="Component" Spec="Tire">bicycle tires</cs:DimensionValue> <cs:DimensionValue DimensionName="Component" Spec="/">Parts</cs:DimensionValue> </cs:DimensionValueWithPath> </cs:DimensionHierarchy>