fix the search bug in other controller,add a filter for search