add search function of index action.