属性のメタデータ・プロパティに値を割り当てるには、構成WebサービスのupdateProperties操作を使用します。プロパティに値を割り当てるには、事前にプロパティを作成しておく必要があります。
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <config-service:configTransaction xmlns:config-service="http://www.endeca.com/MDEX/config/services/types/2/0"> <config-service:updateProperties xmlns:mdex="http://www.endeca.com/MDEX/XQuery/2009/09"> <mdex:record> <mdex-property_Key>DealerPrice</mdex-property_Key> <system-eid_isDimension type="mdex:boolean" xmlns="">false</system-eid_isDimension> <system-eid_available_aggregations type="mdex:string">SUM,AVG,MIN,MAX,VARIANCE,STDDEV</system-eid_available_aggregations> <system-eid_default_aggregation type="mdex:string" xmlns="">AVG</system-eid_default_aggregation> <system-eid_formatSettings>{"type":"CURRENCY","@class":"com.endeca.portal.format.NumberFormatter","currencySymbol":"$"}</system-eid_formatSettings> <system-eid_localizedDn>{"de_DE":"Händlerpreis","fr_FR":"Prix marchand","es_ES":"Precio de los concesionarios"}</system-eid_formatSettings> <mdex:record> </config-service:updateProperties> </config-service:configTransaction> </soap:Body> </soap:Envelope>
このコード例は、Endeca Information Discovery Getting Startedプロジェクトからの引用です。このプロジェクトには、拡張メタデータ・プロパティと初期プロパティの両方に値を割り当てるサンプル・パイプラインが含まれています。LoadConfiguration.grfグラフで、Load Attribute Metadataパイプラインを参照してください。