OK, that answers the question I asked. 

What I am really looking for is a way to tell the service the maximum number of 
query results I want returned in sum-total. 

Basically a way to pass a query optimization hint like "RETURN TOP". 

AJ

On October 17, 2015 7:11:09 AM EDT, "Florian Müller" <f...@apache.org> wrote:
>Hi AJ,
>
>Yes, that is supported by OpenCMIS and DotCMIS.
>You control the maxItems parameter with the getPage() method and the
>skipCount parameter with the skipTo() method.
>
>To get the first 10 hits call this:
>session.query(...).getPage(10)
>
>To skip the first 3 hits and then get a list of max 100 hits call this:
>session.query(...).skiptTo(3).getPage(100)
>
>
>The corresponding JavaDoc is here:
>https://chemistry.apache.org/java/0.13.0/maven/apidocs/org/apache/chemistry/opencmis/client/api/ItemIterable.html
>
>
>- Florian
>
>
>> It is my understanding that there is an optional "maxItems" for (at
>> least) searching in the CMIS standard?
>> 
>> A quote from something I read: The CMIS specification defines the
>> maxItems parameter as “the maximum number of items to return in a
>> response”.
>> 
>> I believe this is different than "MaxItemsPerPage" in our OC
>properties.
>> 
>> But the actual question is whether this is supported/available in
>> DotCMIS (or OpenCMIS)? I expected it to maybe be in the OC, but it's
>not
>> there. Checked if there's an overloaded session.Query() method, but
>it's
>> not there either.
>> 
>> Is this available???
>> 
>> Thanks,
>> AJ
>> 

Reply via email to