remove IndexController
Showing
1 changed file
with
0 additions
and
19 deletions
@@ -63,8 +63,6 @@ public class IndexController implements ApplicationEventPublisherAware { | @@ -63,8 +63,6 @@ public class IndexController implements ApplicationEventPublisherAware { | ||
63 | @Autowired | 63 | @Autowired |
64 | private ProductIndexIndexBuilder productIndexIndexBuilder; | 64 | private ProductIndexIndexBuilder productIndexIndexBuilder; |
65 | @Autowired | 65 | @Autowired |
66 | - private AmqpTemplate amqpTemplate; | ||
67 | - @Autowired | ||
68 | private RebuildFlagService rebuildFlagService; | 66 | private RebuildFlagService rebuildFlagService; |
69 | @Autowired | 67 | @Autowired |
70 | private IndexRebuildJob indexRebuildJob; | 68 | private IndexRebuildJob indexRebuildJob; |
@@ -217,23 +215,6 @@ public class IndexController implements ApplicationEventPublisherAware { | @@ -217,23 +215,6 @@ public class IndexController implements ApplicationEventPublisherAware { | ||
217 | return getResultMap(200, "rebuildAll success"); | 215 | return getResultMap(200, "rebuildAll success"); |
218 | } | 216 | } |
219 | 217 | ||
220 | - @RequestMapping(method = RequestMethod.POST, value = "/index/update/{indexName}") | ||
221 | - @ResponseBody | ||
222 | - public Map<String, Object> update(@PathVariable String indexName, @RequestBody String json, HttpServletRequest request) { | ||
223 | - // 通过indexName得到消息地址,然后发消息 | ||
224 | - // 使用这个接口需要了解消息的格式 | ||
225 | - String channel = ISearchConstants.REDIS_CHANNEL_PRIFIX + indexName; | ||
226 | - try { | ||
227 | - amqpTemplate.convertAndSend(channel, createMessage(json)); | ||
228 | - } catch (AmqpException e) { | ||
229 | - publisher.publishEvent(new SearchEvent(EventReportEnum.INDEXCONTROLLER_INDEX_UPDATE.getEventName(), EventReportEnum.INDEXCONTROLLER_INDEX_UPDATE.getFunctionName(), | ||
230 | - EventReportEnum.INDEXCONTROLLER_INDEX_UPDATE.getMoudleName(), "exception", IgnoreSomeException.filterSomeException(e), null)); | ||
231 | - logger.error("[func=sendMessage][step=execption][e={}]", e.getMessage()); | ||
232 | - } | ||
233 | - logger.info("[func=sendMessage][step=success][indexName={}][msg={}]", indexName, json); | ||
234 | - return getResultMap(200, "update " + indexName + " success"); | ||
235 | - } | ||
236 | - | ||
237 | @RequestMapping(value = "/index/suggestion/flow") | 218 | @RequestMapping(value = "/index/suggestion/flow") |
238 | @ResponseBody | 219 | @ResponseBody |
239 | public Map<String, Object> runSuggestionFlow() { | 220 | public Map<String, Object> runSuggestionFlow() { |
-
Please register or login to post a comment