Modify SearchServiceImpl, removing flag field to the method search();