Re: Question about Paging - numItems

2016-08-23 Thread Sascha Homeier
Hi Florian, thx for fixing this. Just tested on latest trunk and now page.getPage().skipTo() also works properly. Happy to see it gets into v1.0.0 ;) Cheers Sascha P. +84 166 456-3331 shome...@apollon.de turning technology. apollon GmbH+Co. KG Maximilianstr. 104 75172 Pforzheim / Germany www.

Re: Question about Paging - numItems

2016-08-23 Thread Florian Müller
Hi Sascha, I've aligned the use of page.skipTo().getPage() and page.getPage().skipTo(). Please see: https://issues.apache.org/jira/browse/CMIS-994 - Florian Hi Florian, items now show up properly. Thx Florian. I think I might give some advice to our customers on how to get the pages pro

Re: Question about Paging - numItems

2016-08-20 Thread Florian Müller
That's right. I'll extend the JavaDoc and add a code sample on the website. - Florian Am 20. August 2016 04:17:44 schrieb Sascha Homeier : Hi Florian, items now show up properly. Thx Florian. I think I might give some advice to our customers on how to get the pages properly. So regarding

Re: Question about Paging - numItems

2016-08-19 Thread Sascha Homeier
Hi Florian, items now show up properly. Thx Florian. I think I might give some advice to our customers on how to get the pages properly. So regarding to your fix the code on client side should look like this: // initial query with properly set maxItems in operationContext results = query(statem

Re: Question about Paging - numItems

2016-08-19 Thread Florian Müller
Hi Sascha, You found a bug in the Workbench! It's now fixed. Thanks for reporting it! - Florian Hi Florian, thx for the info. Yes, on server side I only return 5 hits except for the last page where I only return 1 (total numItems = 16). I am just a bit confused about the display in the C

Re: Question about Paging - numItems

2016-08-19 Thread Sascha Homeier
Hi Florian, thx for the info. Yes, on server side I only return 5 hits except for the last page where I only return 1 (total numItems = 16). I am just a bit confused about the display in the Chemistry Workbench QueryFrame: When I set skipCount to 0 with maxHits = 5 it properly only shows up 5

Re: Question about Paging - numItems

2016-08-19 Thread Florian Müller
Hi Sascha, You are right, totalNumItems should stay the same for each page (assuming that the data in the repository doesn't change). Some repositories don't always return a value for totalNumItems, but that's OK from the spec point of view. If the client sets maxItems to 5 the server MUST NO

Question about Paging - numItems

2016-08-18 Thread Sascha Homeier
Hi all, I am currently struggling with the paging of a query result set. Did I understand it correctly that “numItems” should contain the whole number of items (if the repository knows about it)? So for example a repository only contains 16 documents all from type cmis:document and we have a q