![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ES
Lin大坑haha~
这个作者很懒,什么都没留下…
展开
-
Elasticsearch 6添加数据踩坑The number of object passed must be even but was [1]
由于参考的是es5 javaAPI的代码,实验过程报如题的错误 public static void insert_man(TransportClient client, String id,String name,String city,double age) { 旧代码 MyObj obj = new MyObj(); obj.setName(name); obj.setAge(ag...原创 2019-03-05 18:36:05 · 5213 阅读 · 0 评论 -
ES JEST 5.3.3 查询
/** 通配符和正则表达式查询 @throws Exception */ @Test public void query() throws Exception { SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder(); // 选择匹配方式 QueryBuilder queryBuilder = QueryBuil...原创 2019-03-07 15:43:55 · 422 阅读 · 0 评论