chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshy Augustine <joshymaugust...@gmail.com>
Subject Re: Apache Chemistry 0.11 + alfresco 4.2 pagination question
Date Tue, 19 Aug 2014 08:53:23 GMT
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 <fmui@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message