属性スキーマのロード

構成Webサービスを使用して、標準属性と管理属性のスキーマをロードできます。

ソース・レコードをロードする前に属性スキーマをロードすることをお薦めします。これにより、Dgraphプロセスでデータセットの再索引作成を行わずに、生成されるPDRとDDRを必要に応じて変更できます。PDRとDDRを希望どおりに構成した後で、データ・インジェストWebサービスを使用してソース・レコードをロードできます。

  • putProperties要素は標準属性スキーマをロードします。
  • putDimensions要素は管理属性スキーマをロードします。
この操作の使用方法を示すために、構成Webサービスの次の単純なconfigTransactionの例を使用します。
<config-service:configTransaction 
   xmlns:config="http://www.endeca.com/MDEX/config/services/types/2/0" 
   xmlns:mdex="http://www.endeca.com/MDEX/config/XQuery/2009/09">
<config-service:putDimensions>
    <mdex:record>
      <mdex-dimension_EnableRefinements>true</mdex-dimension_EnableRefinements>
      <mdex-dimension_IsDimensionSearchHierarchical>true</mdex-dimension_IsDimensionSearchHierarchical>
      <mdex-dimension_IsRecordSearchHierarchical>true</mdex-dimension_IsRecordSearchHierarchical>
      <mdex-dimension_Key>BikeType</mdex-dimension_Key>
    </mdex:record>
  </config-service:putDimensions>
  <config-service:putProperties>
    <mdex:record>
      <mdex-property_IsSingleAssign>true</mdex-property_IsSingleAssign>
      <mdex-property_IsTextSearchable>false</mdex-property_IsTextSearchable>
      <mdex-property_IsUnique>true</mdex-property_IsUnique>
      <mdex-property_Key>ProductID</mdex-property_Key>
      <mdex-property_TextSearchAllowsWildcards>false</mdex-property_TextSearchAllowsWildcards>
      <mdex-property_IsPropertyValueSearchable>false</mdex-property_IsPropertyValueSearchable>
      <mdex-property_Type>mdex:int</mdex-property_Type>
      <mdex-property_DisplayName>Product ID</mdex-property_DisplayName>
    </mdex:record>
    <mdex:record>
      <mdex-property_IsSingleAssign>true</mdex-property_IsSingleAssign>
      <mdex-property_IsTextSearchable>true</mdex-property_IsTextSearchable>
      <mdex-property_IsUnique>false</mdex-property_IsUnique>
      <mdex-property_Key>BikeType</mdex-property_Key>
      <mdex-property_TextSearchAllowsWildcards>true</mdex-property_TextSearchAllowsWildcards>
      <mdex-property_IsPropertyValueSearchable>true</mdex-property_IsPropertyValueSearchable>
      <mdex-property_Type>mdex:string</mdex-property_Type>
      <mdex-property_DisplayName>Bike Type</mdex-property_DisplayName>
    </mdex:record>
  </config-service:putProperties>
</config-service:configTransaction>

この例は、2つの標準属性(ProductIDとBikeType)および1つの管理属性(BikeType)を作成します。ProductID属性は単一割当ての一意の属性として構成されるため、レコードの主キーとして使用できます。BikeType属性は、BikeType管理属性の作成に使用される標準属性レコードです。

Endecaデータ・ドメインに属性スキーマをロードする手順:

  1. Oracle Endeca Serverとデータ・ドメインが実行されていることを確認します。データ・ドメインの構成Webサービスにアクセスします(http://localhost:<port>/ws/config/dataDomain?wsdl)。
  2. 前述のように、構成WebサービスにSOAPリクエストを行います。
リクエストに成功した場合、レスポンスは次の例のようになります。
<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/2/0"/>
 </soapenv:Body>
</soapenv:Envelope>