code: public static void configureExample(String host, int port, String user, String password, Authentication authType)
      throws IOException, ResourceNotFoundException, ForbiddenUserException, FailedRequestException, ResourceNotResendableException
    {
      // create the client
      DatabaseClient client = DatabaseClientFactory.newClient(host, port, user, password, authType);
  
      installResourceExtension(client);
  
      configureQueryOptions(client);
  
      setUpExample(client);
  
      // release the client
      client.release();
    }
docs: set up the query options for the collecting search