@@ -42,6 +42,6 @@ public class YoumeiDataController {
@RequestMapping("category")
public List<String> category(){
- return Arrays.asList("财经", "彩票", "房产", "股票", "教育", "科技", "社会", "时尚", "时政", "体育", "星座", "游戏", "娱乐");
+ return Arrays.asList("时政", "财经", "股票", "教育", "科技", "社会", "体育", "游戏", "娱乐", "时尚", "彩票", "房产", "星座");
}
@@ -38,7 +38,7 @@ public class EsClientTests {
@Test
public void test1(){
try {
- elasticsearchClient.indices().delete(c -> c.index("news_data"));
+// elasticsearchClient.indices().delete(c -> c.index("news_data"));
// elasticsearchClient.indices().create(c -> c.index("news_data"));
System.out.println(elasticsearchClient.indices().exists(b -> b.index("news_data")).value());
} catch (IOException e) {