検索条件に一致するデータについて、そのデータが持つ全ての情報を取得します。
「2006年7月18日に大阪で宿泊可能なホテルのうち、該当する30件分のホテル情報は?」
年月日(2006年7月18日)および、場所(大阪)を条件に検索を行い、該当するホテルの詳細情報を取得します。また、最大取得件数を30件として設定します。
実行例
shunexecsearch -h ShnSvr -s "/document {/base/prefecture == '大阪' AND /information/date == '2006年07月18日'}" -r "/" -ret 30 -d実行結果
time : 2006-05-31 14:06:37.652
/*** ShunSearch executing... ***/
ShunSearch FINISHED ( 0.008144274 [sec] )
start No. = 1
hit count = 3
return count = 3
total data length [byte] = 1,179
[data]No.1 = <document>
<base>
<name>ホテル1</name>
<prefecture>大阪</prefecture>
<address>大阪府大阪市中央区</address>
<detail>http://xxxxx.co.jp</detail>
<price>9000</price>
</base>
<information>
<date>2006年07月18日</date>
</information>
<note>バス付 トイレ付 地下鉄 △△駅徒歩02分</note>
</document>
[data]No.2 = <document>
<base>
<name>ホテル2</name>
<prefecture>大阪</prefecture>
<address>大阪府大阪市中央区</address>
<detail>http://xxxxx.co.jp</detail>
<price>6000</price>
</base>
<information>
<date>2006年07月18日</date>
</information>
<note>バス付 トイレ付 地下鉄 △△駅徒歩05分</note>
</document>
[data]No.3 = <document>
<base>
<name>ホテル3</name>
<prefecture>大阪</prefecture>
<address>大阪府大阪市中央区</address>
<detail>http://xxxxx.co.jp</detail>
<price>7500</price>
</base>
<information>
<date>2006年07月18日</date>
</information>
<note>バス付 トイレ付 地下鉄 △△駅徒歩10分</note>
</document>実行結果の“hit count”が検索条件に一致した件数になり、“[data]”から始まる行が該当するXMLデータになります。