When allResult flag is given, all the results will be returned for a page