Kaynağa Gözat

검색엔진(NHN다이퀘스트) 인기검색어 로직 주석 처리. 검색엔진에서 확정된 jar 파일 제공 안 함

gagamel 5 yıl önce
ebeveyn
işleme
fed0f37f94

+ 14 - 22
src/main/java/com/style24/front/biz/thirdparty/SearchEngineDiquest.java

@@ -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;
 	}