chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neza Guillaine <gne...@gmail.com>
Subject Re: Question about cmis path
Date Thu, 23 Jun 2016 09:40:44 GMT
Dear Florian and devs,

I hope this email finds you well.
I am writing to request for you help again.

I was trying to use the query result to return all documents properties in
my repository. However, my repo has about 4310 but I am only able to return
2000. I used the following codes:

String query = "SELECT * FROM cmis:document";
int maxItems = 10000;
ItemIterable<QueryResult> allQueryResults = session.query(query,
false).getPage(maxItems);

With this line of codes I was expecting to get at least 10,000 documents as
a maximum.
Did I do it correctly or I missed something? Is there a maximum result
number regardless the extension above?

Any help will be highly appreciated.

Regards,
Neza



On Mon, Jun 20, 2016 at 3:36 PM, Neza Guillaine <gneza1@gmail.com> wrote:

> Hi Florian,
>
> Thanks for the quick response. I tried it and it worked as expected. I am
> still exploring the functionalities and I a m getting along well. bear wit
> me for any question that might seem too basic.
>
> Regards,
> Neza
>
> On Mon, Jun 20, 2016 at 11:37 AM, Florian Müller <fmui@apache.org> wrote:
>
>> Hi Neza,
>>
>> It is not possible to get the path of a document in a query result.
>> You have to iterate over the result set and call getPaths().
>>
>>
>> - Florian
>>
>>
>>
>>
>> Dear all,
>>>
>>> I hope this email finds you well. I am writing to request for your help.
>>> I was using cmis query to query all documents in myrepository and that
>>> works very perfect as I want to. However I have a pertinant question, I
>>> wanted to ask how I can also get the first path of a document in my query
>>> results. I know the document does not have the cmis:path. Is there any
>>> way
>>> to access the getPaths method in my query result? Can i get the path of
>>> each of my queried documents?
>>>
>>> If there is any idea or sample codes that would help.
>>>
>>> Thanks.
>>> Neza
>>>
>>
>

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