add raising NoResultsError after filtering in search_train_* functions