Authored by 胡古飞

fix RobotQuestionServiceImpl

... ... @@ -34,6 +34,7 @@ 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.cache.SearchCacheFactory;
import com.yoho.search.service.cache.SearchCacheMatchLogger;
import com.yoho.search.service.cache.model.SearchCache;
import com.yoho.search.service.service.SearchCacheService;
import com.yoho.search.service.service.SearchCommonService;
... ... @@ -50,8 +51,6 @@ public class RobotQuestionServiceImpl extends BaseService implements IRobotQuest
private static final Logger logger = LoggerFactory.getLogger(RobotQuestionServiceImpl.class);
private static Logger CACHE_MATCH_REQUEST = LoggerFactory.getLogger("CACHE_MATCH_REQUEST");
private ApplicationEventPublisher publisher;
@Autowired
... ... @@ -136,7 +135,7 @@ public class RobotQuestionServiceImpl extends BaseService implements IRobotQuest
final String indexName = ISearchConstants.INDEX_NAME_ROBOTQUESTION;
JSONObject cacheObject = searchCacheService.getJSONObjectFromCache(searchCache,indexName, searchParam);
if (cacheObject != null) {
CACHE_MATCH_REQUEST.info("match cache , url is :/robotquestion.json?" + HttpServletRequestUtils.genParamString(paramMap));
SearchCacheMatchLogger.doSearchCacheMatchLog("/robotquestion.json", paramMap);
return new SearchApiResult().setData(cacheObject);
}
... ...