code: public String buildPagingQuery(int inPageIndex) {
          this.setPageIndex(inPageIndex);
          String pageFilter = "\npage:\n" + "   size: " + pageSize + "\n" + "   start: " + pageIndex;
          this.setPagingQuery(this.getBasicQuery() + pageFilter);
          return this.getPagingQuery();
      }
docs: Creates a query on demand based on a given basic query and a specified
  page index value. It is recommended to use this method in a loop to
  ensure all pages are covered.
  
  @param inPageIndex A given query's current page index, from 0-oo
  @return A JSON-formatted response