|
|
@@ -1,21 +1,13 @@
|
|
|
package com.style24.front.biz.thirdparty;
|
|
|
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
import javax.annotation.PostConstruct;
|
|
|
|
|
|
-import org.json.simple.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.core.env.Environment;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import com.diquest.ir.common.exception.IRException;
|
|
|
-import com.google.gson.Gson;
|
|
|
import com.style24.persistence.domain.searchengine.SearchEngine;
|
|
|
|
|
|
-import istyle.AutoSearch;
|
|
|
-
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
/**
|
|
|
@@ -54,20 +46,20 @@ public class SearchEngineDiquest {
|
|
|
public SearchEngine getTrendKeywordList() {
|
|
|
SearchEngine result = new SearchEngine();
|
|
|
|
|
|
- // 인기검색어
|
|
|
- Map<String, Object> map = new HashMap<String, Object>();
|
|
|
- map.put("adminIp", ipAddr);
|
|
|
- map.put("adminPort", port);
|
|
|
-
|
|
|
- try {
|
|
|
- JSONObject jsonObj = AutoSearch.trendKeyword(map);
|
|
|
- log.info("jsonObj.toJSONString(): {}", jsonObj.toJSONString());
|
|
|
-
|
|
|
- Gson gson = new Gson();
|
|
|
- result = gson.fromJson(jsonObj.toJSONString(), SearchEngine.class);
|
|
|
- } catch (IRException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
+// // 인기검색어
|
|
|
+// Map<String, Object> map = new HashMap<String, Object>();
|
|
|
+// map.put("adminIp", ipAddr);
|
|
|
+// map.put("adminPort", port);
|
|
|
+//
|
|
|
+// try {
|
|
|
+// JSONObject jsonObj = AutoSearch.trendKeyword(map);
|
|
|
+// log.info("jsonObj.toJSONString(): {}", jsonObj.toJSONString());
|
|
|
+//
|
|
|
+// Gson gson = new Gson();
|
|
|
+// result = gson.fromJson(jsonObj.toJSONString(), SearchEngine.class);
|
|
|
+// } catch (IRException e) {
|
|
|
+// e.printStackTrace();
|
|
|
+// }
|
|
|
|
|
|
return result;
|
|
|
}
|