Hi,

Can I ask you a related question?

Am I right to understand that by default Open CMIS Client will set
maxResults for a query as 100? I also understand that it is possible to
over-ride this flag with a higher value in OperationContext supplied to
session.query() method. I presume both the above mechanisms are set in
place in order to encourage the user to use an 'iterative approach' to deal
with large resultsets rather than fetching all the results(which will have
an associated performance penatlty) from the ECM Repository.

However, I am interested to know if there is a need, whether it is possible
to obtain *all* results that matches a query via open CMIS API?

For example, is the following possible?

ItemIterable<QueryResult> allResultsInECMThatMatchesTheQuery  =
session.query(complete_statement,false,context);

Thanks,
Joshy

On Wed, Aug 13, 2014 at 7:12 PM, Florian Müller <f...@apache.org> wrote:

> Hi Joshy,
>
> That is likely a repository bug. The hasMoreItems flag should be true in
> this case.
>
>
> - Florian
>
>
> > Hi,
> >
> > Apologies in advance if I am missing something obvious. I am encountering
> > the following situation in my test code.
> >
> >
> > ItemIterable<QueryResult> queryResult = session.query(complete_statement,
> > *false*,context);
> >
> >
> >
> >
> > queryResult.getTotalNumItems() // returns 3
> >
> > queryResult.skipTo(0).getPage(2).getHasMoreItems() //returns *false*
> >
> >
> >
> > Is it correct that the 3 rd line is returning false?
> >
> >
>



-- 
Cheers,
Josh

Reply via email to