apply quality filter to query search