Authored by Gino Zhang

优化重构搜索推荐词

@@ -26,6 +26,7 @@ import org.elasticsearch.search.sort.SortOrder; @@ -26,6 +26,7 @@ import org.elasticsearch.search.sort.SortOrder;
26 import org.slf4j.Logger; 26 import org.slf4j.Logger;
27 import org.slf4j.LoggerFactory; 27 import org.slf4j.LoggerFactory;
28 import org.springframework.beans.factory.annotation.Autowired; 28 import org.springframework.beans.factory.annotation.Autowired;
  29 +import org.springframework.stereotype.Component;
29 import org.springframework.util.Assert; 30 import org.springframework.util.Assert;
30 31
31 import java.util.*; 32 import java.util.*;
@@ -34,6 +35,7 @@ import java.util.stream.Collectors; @@ -34,6 +35,7 @@ import java.util.stream.Collectors;
34 /** 35 /**
35 * Created by ginozhang on 2017/3/22. 36 * Created by ginozhang on 2017/3/22.
36 */ 37 */
  38 +@Component
37 public class SearchRecommendServiceImpl implements ISearchRecommendService { 39 public class SearchRecommendServiceImpl implements ISearchRecommendService {
38 40
39 private static final Logger logger = LoggerFactory.getLogger(SearchRecommendServiceImpl.class); 41 private static final Logger logger = LoggerFactory.getLogger(SearchRecommendServiceImpl.class);