属性グループのリストを取得するには、AttributeGroupListConfigタイプとともにリクエストを使用します。
<AttributeGroupListConfig Id="?">
<StateName>?</StateName>
</AttributeGroupListConfig>
変数の意味は次のとおりです。
グループのリストの取得の手順:
<Request xmlns="http://www.endeca.com/MDEX/conversation/3/0"> <State/> <AttributeGroupListConfig Id="AttrGroups"/> </Request>
<cs:Results ...>
<ns:State .../>
<cs:AttributeGroupList Id="AttrGroups">
<cs:GroupSummary Key="WineGroup" Cardinality="4">
<cs:Record>
<cs:attribute name="system-group_DisplayName" type="mdex:string">Wine Refs</cs:attribute>
<cs:attribute name="system-group_Key" type="mdex:string">WineGroup</cs:attribute>
</cs:Record>
<cs:GroupMembers>
<cs:attribute name="mdex-property_Key">WineType</cs:attribute>
<cs:attribute name="mdex-property_Key">Wine</cs:attribute>
<cs:attribute name="mdex-property_Key">Region</cs:attribute>
<cs:attribute name="mdex-property_Key">Flavors</cs:attribute>
</cs:GroupMembers>
</cs:GroupSummary>
</cs:AttributeGroupList>
</cs:Results>
この例では、(WineGroupという)1つのグループが返されます。Cardinality属性は、グループ内の属性の数を示します。各グループ・メンバーの属性もリストされます。