提交 a2ad6404 authored 作者: 朱运伟's avatar 朱运伟

修改异常

上级 fd3ec008
...@@ -908,9 +908,9 @@ public class EsUtil_fanshe { ...@@ -908,9 +908,9 @@ public class EsUtil_fanshe {
* @Author: dongjili * @Author: dongjili
* @Date: 2019/5/14 0014 * @Date: 2019/5/14 0014
*/ */
public static List<Basehighwayalldata> queryHighWayFiler(String lxbh,double zh, String index, String type, int start, int row) throws Exception { public static List<Basehighwayalldata> queryHighWayFiler(String lxbh,double zh, String type) throws Exception {
//搜索数据 //搜索数据
SearchRequestBuilder searchRequestBuilder = getClient().prepareSearch(index).setTypes(type).setFrom(start).setSize(row); SearchRequestBuilder searchRequestBuilder = getClient().prepareSearch("basehighwayalldata").setTypes(type).setFrom(0).setSize(1);
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度) //isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
if (org.apache.commons.lang.StringUtils.isNotBlank(lxbh)) { if (org.apache.commons.lang.StringUtils.isNotBlank(lxbh)) {
//multiMatchQuery多个字段匹配某一个值 //multiMatchQuery多个字段匹配某一个值
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论