|
|
@@ -206,7 +206,7 @@ public class SearchServiceImpl implements SearchService{
|
|
|
public Map<String,Object> getSimilarKeywords(String keyword) throws SearchException {
|
|
|
Map<String, Object> map = new HashedMap();
|
|
|
map.put("keyword", keyword);
|
|
|
- //String str = restTemplate.getForObject(sysConf.getSearchUrl() + SearchUrl.SIMILAR_KEYWORD_URL, String.class, map);
|
|
|
+ String strA = restTemplate.getForObject(sysConf.getSearchUrl() + SearchUrl.SIMILAR_KEYWORD_URL, String.class, map);
|
|
|
String strC = restTemplate.getForObject(sysConf.getSearchUrl() + SearchUrl.SIMILAR_COMPONENT_URL, String.class, map);
|
|
|
String strB = restTemplate.getForObject(sysConf.getSearchUrl() + SearchUrl.SIMILAR_BRAND_URL, String.class, map);
|
|
|
String strK = restTemplate.getForObject(sysConf.getSearchUrl() + SearchUrl.SIMILAR_KIND_URL, String.class, map);
|
|
|
@@ -214,10 +214,12 @@ public class SearchServiceImpl implements SearchService{
|
|
|
return null;
|
|
|
}else {
|
|
|
try {
|
|
|
+ List<String> reMapA = FastjsonUtils.fromJson(strC, List.class);
|
|
|
List<String> reMapC = FastjsonUtils.fromJson(strC, List.class);
|
|
|
List<String> reMapB = FastjsonUtils.fromJson(strB, List.class);
|
|
|
List<String> reMapK = FastjsonUtils.fromJson(strK, List.class);
|
|
|
map.clear();
|
|
|
+ map.put("all",reMapA);
|
|
|
map.put("kind",reMapK);
|
|
|
map.put("componet",reMapC);
|
|
|
map.put("brand",reMapB);
|