問合せ時のソート順序

問合せごとに、レコードのソート基準にするキーとソートの方向を指定できます。

ソート基準にするキーとソート方向を指定できるRecordList構成にSortタイプを追加できます。Sort形式は次のとおりです。
<Sort Key="keyName" Direction="dirOrder"/>
変数の意味は次のとおりです。
  • keyNameは、ソートの実行基準にする標準属性または管理属性の名前です。
  • dirOrderは、Ascending (昇順の場合)またはDescending (降順の場合)のいずれかになります。

属性名とソート順序はどちらも大/小文字が区別されます。

次の例は、ModelName属性に基づくAscendingソート順序を示します。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
   xmlns:ns="http://www.endeca.com/MDEX/conversation/2/0" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Header/>
  <soapenv:Body>
    <ns:Request>
      <ns:ContentElementConfig xsi:type="ns:RecordListConfig"
          Id="RecordList"
          HandlerFunction="RecordListHandler"
          HandlerNamespace="http://www.endeca.com/MDEX/conversation/2/0" 
          MaxPages="2">
          <ns:RecordsPerPage>10</ns:RecordsPerPage>
          <ns:Page>1</ns:Page>
          <ns:Sort Key="ModelName" Direction="Ascending"/> 
          </ns:ContentElementConfig>
    </ns:Request>
  </soapenv:Body>
</soapenv:Envelope>