|
@ -94,7 +94,7 @@ public class TextSearchEndPoint extends EnvelopRestEndPoint {
|
|
|
return success(dataList, (int)queryResponse.getResults().getNumFound(), page, size);
|
|
|
}
|
|
|
|
|
|
@ApiOperation("获取热搜")
|
|
|
@ApiOperation(value = "获取热搜")
|
|
|
@RequestMapping(value = MicroServiceApi.TextSearch.HotWords, method = RequestMethod.GET)
|
|
|
public List<String> getHotWords(
|
|
|
@ApiParam(name = "reCount", value = "返回个数", required = true)
|
|
@ -105,7 +105,7 @@ public class TextSearchEndPoint extends EnvelopRestEndPoint {
|
|
|
return hotWords;
|
|
|
}
|
|
|
|
|
|
@ApiOperation("更新热搜")
|
|
|
@ApiOperation(value = "更新热搜")
|
|
|
@RequestMapping(value = MicroServiceApi.TextSearch.HotWords, method = RequestMethod.POST)
|
|
|
public boolean updateHotWords(
|
|
|
@ApiParam(name = "searchText", value = "搜索关键词", required = true)
|
|
@ -168,4 +168,4 @@ public class TextSearchEndPoint extends EnvelopRestEndPoint {
|
|
|
}
|
|
|
return q.toString();
|
|
|
}
|
|
|
}
|
|
|
}
|