Rule to apply onQuery. also accept $query as argument (not from model).
apply filters when resetQuery is true (to apply filter only once).