Showing
1 changed file
with
2 additions
and
7 deletions
@@ -21,14 +21,13 @@ import com.yoho.search.core.es.model.SearchParam; | @@ -21,14 +21,13 @@ import com.yoho.search.core.es.model.SearchParam; | ||
21 | import com.yoho.search.core.es.model.SearchResult; | 21 | import com.yoho.search.core.es.model.SearchResult; |
22 | import com.yoho.search.core.es.utils.IgnoreSomeException; | 22 | import com.yoho.search.core.es.utils.IgnoreSomeException; |
23 | import com.yoho.search.service.aggregations.impls.AggregationFactoryService; | 23 | import com.yoho.search.service.aggregations.impls.AggregationFactoryService; |
24 | +import com.yoho.search.service.cache.CatchMatchLogger; | ||
24 | import com.yoho.search.service.cache.SearchCacheFactory; | 25 | import com.yoho.search.service.cache.SearchCacheFactory; |
25 | import com.yoho.search.service.cache.model.SearchCache; | 26 | import com.yoho.search.service.cache.model.SearchCache; |
26 | import com.yoho.search.service.service.SearchCacheService; | 27 | import com.yoho.search.service.service.SearchCacheService; |
27 | import com.yoho.search.service.service.SearchCommonService; | 28 | import com.yoho.search.service.service.SearchCommonService; |
28 | -import com.yoho.search.service.service.helper.SearchCommonHelper; | ||
29 | import com.yoho.search.service.service.helper.SearchParamHelper; | 29 | import com.yoho.search.service.service.helper.SearchParamHelper; |
30 | import com.yoho.search.service.servicenew.IRecentService; | 30 | import com.yoho.search.service.servicenew.IRecentService; |
31 | -import com.yoho.search.service.utils.HttpServletRequestUtils; | ||
32 | import com.yoho.search.service.utils.SearchApiResultUtils; | 31 | import com.yoho.search.service.utils.SearchApiResultUtils; |
33 | import com.yoho.search.service.vo.SearchApiResult; | 32 | import com.yoho.search.service.vo.SearchApiResult; |
34 | 33 | ||
@@ -37,10 +36,6 @@ public class RecentServiceImpl implements IRecentService, ApplicationEventPublis | @@ -37,10 +36,6 @@ public class RecentServiceImpl implements IRecentService, ApplicationEventPublis | ||
37 | 36 | ||
38 | private static final Logger logger = LoggerFactory.getLogger(RecentServiceImpl.class); | 37 | private static final Logger logger = LoggerFactory.getLogger(RecentServiceImpl.class); |
39 | 38 | ||
40 | - private static Logger CACHE_MATCH_REQUEST = LoggerFactory.getLogger("CACHE_MATCH_REQUEST"); | ||
41 | - | ||
42 | - @Autowired | ||
43 | - private SearchCommonHelper searchCommonHelper; | ||
44 | @Autowired | 39 | @Autowired |
45 | private AggregationFactoryService aggregationFactoryService; | 40 | private AggregationFactoryService aggregationFactoryService; |
46 | @Autowired | 41 | @Autowired |
@@ -89,7 +84,7 @@ public class RecentServiceImpl implements IRecentService, ApplicationEventPublis | @@ -89,7 +84,7 @@ public class RecentServiceImpl implements IRecentService, ApplicationEventPublis | ||
89 | if (cacheObject != null) { | 84 | if (cacheObject != null) { |
90 | Object result = searchAfterCacheService.dealRecentCacheObject(cacheObject); | 85 | Object result = searchAfterCacheService.dealRecentCacheObject(cacheObject); |
91 | searchApiResult.setData(result); | 86 | searchApiResult.setData(result); |
92 | - CACHE_MATCH_REQUEST.info("match cache , url is :/recent.json?" + HttpServletRequestUtils.genParamString(paramMap)); | 87 | + CatchMatchLogger.doCatchMatchLog("/recent.json", paramMap); |
93 | return searchApiResult; | 88 | return searchApiResult; |
94 | } | 89 | } |
95 | 90 |
-
Please register or login to post a comment