BH-30052 adding check to only do query for ids when the search returned records, for text query groupBy
BH-30052 adding check to only do query for ids when the search returned records, for text query groupBy

asibilia/career-portal,bullhorn/career-portal,bulbajackel/career-portal,bullhorn/career-portal,bulbajackel/career-portal,asibilia/career-portal,MotherNature/career-portal,MotherNature/career-portal,bullhorn/career-portal