For some requirement I need to write code something like below and not sure how it is possible -
Query query = new Query();
query.setCriteria(completeCriteria);
query.setResultFilter(new PagingFilter(minitems,pageSize));
String [] totalComURIs = query.executeQuery();
/* Here I want to Remove the exiting PagingFilter and execute the same query with
new PagingFilter as below- again */
query.setResultFilter(new PagingFilter(minitems,(pageSize +5)));
/* This increment of 5 is not fix and getting calculated with the help of some
code after executing query with first PagingFilter */
String [] AllitemURIs = query.executeQuery();