構成Webサービスを使用して、標準属性と管理属性のスキーマ(PDRおよびDDR)をロードできます。
ソース・レコードをロードする前に属性スキーマをロードすることをお薦めします(これにより、Dgraphプロセスでデータセットの再索引作成を行わずに、生成されるPDRとDDRを必要に応じて変更できます)。PDRとDDRを希望どおりに構成した後で、データ・インジェストWebサービスを使用してソース・レコードをロードできます。
<config-service:configTransaction xmlns:config="http://www.endeca.com/MDEX/config/services/types/3/0" xmlns:mdex="http://www.endeca.com/MDEX/config/XQuery/2009/09"> <config-service:putProperties> <mdex:record> <mdex-property_Key>ProductID</mdex-property_Key> <mdex-property_DisplayName>Product ID</mdex-property_DisplayName> <mdex-property_IsSingleAssign>true</mdex-property_IsSingleAssign> <mdex-property_IsUnique>true</mdex-property_IsUnique> <mdex-property_IsTextSearchable>false</mdex-property_IsTextSearchable> <mdex-property_TextSearchAllowsWildcards>false</mdex-property_TextSearchAllowsWildcards> <mdex-property_IsPropertyValueSearchable>false</mdex-property_IsPropertyValueSearchable> <mdex-property_Type>mdex:int</mdex-property_Type> <mdex-property_Language>en</mdex-property_Language> </mdex:record> <mdex:record> <mdex-property_Key>BikeType</mdex-property_Key> <mdex-property_DisplayName>Bike Type</mdex-property_DisplayName> <mdex-property_IsSingleAssign>true</mdex-property_IsSingleAssign> <mdex-property_IsTextSearchable>true</mdex-property_IsTextSearchable> <mdex-property_IsUnique>false</mdex-property_IsUnique> <mdex-property_TextSearchAllowsWildcards>true</mdex-property_TextSearchAllowsWildcards> <mdex-property_IsPropertyValueSearchable>true</mdex-property_IsPropertyValueSearchable> <mdex-property_Type>mdex:string</mdex-property_Type> <mdex-property_Language>en</mdex-property_Language> </mdex:record> </config-service:putProperties> <config-service:putDimensions> <mdex:record> <mdex-dimension_Key>BikeType</mdex-dimension_Key> <mdex-dimension_EnableRefinements>true</mdex-dimension_EnableRefinements> <mdex-dimension_IsDimensionSearchHierarchical>true</mdex-dimension_IsDimensionSearchHierarchical> <mdex-dimension_IsRecordSearchHierarchical>true</mdex-dimension_IsRecordSearchHierarchical> </mdex:record> </config-service:putDimensions> </config-service:configTransaction>
まず、この例では、putPropertiesを使用して2つの標準属性(ProductIDおよびBikeType)を作成します。ProductID属性は単一割当ての一意の属性として構成されるため、レコードの主キーとして使用できます。BikeType属性は、BikeType管理属性の作成に使用される標準属性レコードです。次に、この例では、putDimensionsを使用してBikeType管理属性を作成します。
Endecaデータ・ドメインに属性スキーマをロードする手順:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <config-types:results xmlns:config-types="http://www.endeca.com/MDEX/config/services/types/3/0"/> </soapenv:Body> </soapenv:Envelope>