摘要: /** * 高级检索(组合条件检索)must相当于sql and操作 * @param modelType 0为模糊查询,1为精确查询 * @param index 索引 * @param map key为查询字段和value为查询内容 * @param Page 分页页码 * @param Pag 阅读全文
posted @ 2017-10-16 23:44 新风之谷 阅读(1032) 评论(0) 推荐(0) 编辑
摘要: /** * es全文检索java实现API * @author zxy * */ public class EsPersonDao { /** * * @param index 查询的索引 * @param str 查询内容 * @param Page 页码 * @param Pagesize 每页 阅读全文
posted @ 2017-10-16 23:25 新风之谷 阅读(776) 评论(0) 推荐(0) 编辑
摘要: import java.net.InetAddress;import org.elasticsearch.client.transport.TransportClient;import org.elasticsearch.common.settings.Settings;import org.ela 阅读全文
posted @ 2017-10-16 22:42 新风之谷 阅读(735) 评论(0) 推荐(0) 编辑