摘要:
下面的代码展示了如何获取集群信息和索引信息 @Test public void testCluster() throws IOException, InterruptedException, ExecutionException { //指定集群 Settings settings = Settin 阅读全文
posted @ 2019-12-23 00:43
雷雨客
阅读(1723)
评论(0)
推荐(0)
摘要:
1、按年龄分组,查询每组的个数 @Test public void testTerms() throws IOException, InterruptedException, ExecutionException { //指定集群 Settings settings = Settings.build 阅读全文
posted @ 2019-12-23 00:40
雷雨客
阅读(3259)
评论(0)
推荐(0)
摘要:
查询interests字段包含changge并且不包含lvyou,或者address字段包含bei jing的文档,并且前面两种都要满足birthday>="1980-01-01" @Test public void testBoolQuery() throws IOException, Inter 阅读全文
posted @ 2019-12-23 00:32
雷雨客
阅读(873)
评论(0)
推荐(0)
摘要:
1、查询所有字段中含有changge且不含有hejiu的文档 @Test public void testQueryStringQuery() throws IOException, InterruptedException, ExecutionException { //指定集群 Settings 阅读全文
posted @ 2019-12-23 00:23
雷雨客
阅读(3513)
评论(0)
推荐(0)
摘要:
1、求索引lib3下的age字段的最大值 @Test public void testAggMax() throws IOException, InterruptedException, ExecutionException { //指定集群 Settings settings = Settings 阅读全文
posted @ 2019-12-23 00:10
雷雨客
阅读(2530)
评论(0)
推荐(0)
浙公网安备 33010602011771号