Authored by 胡古飞

fix RecentServiceImpl

... ... @@ -21,14 +21,13 @@ import com.yoho.search.core.es.model.SearchParam;
import com.yoho.search.core.es.model.SearchResult;
import com.yoho.search.core.es.utils.IgnoreSomeException;
import com.yoho.search.service.aggregations.impls.AggregationFactoryService;
import com.yoho.search.service.cache.CatchMatchLogger;
import com.yoho.search.service.cache.SearchCacheFactory;
import com.yoho.search.service.cache.model.SearchCache;
import com.yoho.search.service.service.SearchCacheService;
import com.yoho.search.service.service.SearchCommonService;
import com.yoho.search.service.service.helper.SearchCommonHelper;
import com.yoho.search.service.service.helper.SearchParamHelper;
import com.yoho.search.service.servicenew.IRecentService;
import com.yoho.search.service.utils.HttpServletRequestUtils;
import com.yoho.search.service.utils.SearchApiResultUtils;
import com.yoho.search.service.vo.SearchApiResult;
... ... @@ -37,10 +36,6 @@ public class RecentServiceImpl implements IRecentService, ApplicationEventPublis
private static final Logger logger = LoggerFactory.getLogger(RecentServiceImpl.class);
private static Logger CACHE_MATCH_REQUEST = LoggerFactory.getLogger("CACHE_MATCH_REQUEST");
@Autowired
private SearchCommonHelper searchCommonHelper;
@Autowired
private AggregationFactoryService aggregationFactoryService;
@Autowired
... ... @@ -89,7 +84,7 @@ public class RecentServiceImpl implements IRecentService, ApplicationEventPublis
if (cacheObject != null) {
Object result = searchAfterCacheService.dealRecentCacheObject(cacheObject);
searchApiResult.setData(result);
CACHE_MATCH_REQUEST.info("match cache , url is :/recent.json?" + HttpServletRequestUtils.genParamString(paramMap));
CatchMatchLogger.doCatchMatchLog("/recent.json", paramMap);
return searchApiResult;
}
... ...