AnsweredAssumed Answered

How to search for more documents With Cmis

Question asked by gustavosandrade on Nov 8, 2016
Latest reply on Nov 9, 2016 by douglascrp

I have the following code:

 

  String query = "SELECT * FROM cmis:document";

  OperationContext oc = session.createOperationContext();

   oc.setMaxItemsPerPage(1000000);

   resultado = session.query(query.toString(), false, oc);

 

But I have more than 5 thousand documents and the cmis returns me only a thousand. How do I increase the number of pages that it searches? I believe he is bringing a page with only his maximum (thousand documents).

 

 

 

Eu tenho o seguinte código:

 

String query = "SELECT * FROM cmis:document";

  OperationContext oc = session.createOperationContext();

   oc.setMaxItemsPerPage(1000000);

   resultado = session.query(query.toString(), false, oc);

 

A busca me retorna 1.000 documentos, mas eu tenho mais ou menos 5 mil documentos no alfresco. Creio que ele tenha um limite de mil documentos por página e esteja trazendo uma só, creio eu, como faço para aumentar esse número?

Outcomes