4 - Using the From parameter

Build 1501 on 14/Nov/2017  This topic last edited on: 15/Mar/2016, at 11:50

This example uses the 'From' parameter to return the results starting with the second returned object:

http://demo.teradp.com/Tark4/do.ashx?Cmd=search&name=objectsInFolderPath&pars=folderPath:/system/users/Laura/Images

This command without the from returns 19 results.

<result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...>

 <searchResult n="19" from="0" count="19" queryTimeSpan="0">

   <xml>

     <objects xmlns="urn:schemas-teradp-com:gn4tera">

       <image nav:objectType="image" id="obj82649"
              name="image_10010118231743" author="SERGEY PONOMAREV" ...

...

       </image>

       <image nav:objectType="image" id="obj82650"
              name="image_10010118231861" author="ARMANDO TROVATI"...

...

       </image>

...

 

http://demo.teradp.com/Tark4/do.ashx?Cmd=search&name=objectsInFolderPath&pars=folderPath:/system/users/Laura/Images&from=1

Specifying a from value of '1', 18 results are returned starting from the second object matching the search.

<result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...>

 <searchResult n="19" from="1" count="18" queryTimeSpan="0">

   <xml>

     <objects xmlns="urn:schemas-teradp-com:gn4tera">

       <image nav:objectType="image" id="obj82650"

        name="image_10010118231861" author="ARMANDO TROVATI"...

...

       </image>

...