es java字段匹配多个值_es multiMatchQuery多字段匹配异常

在使用Elasticsearch Java客户端进行多字段匹配查询时遇到异常,错误信息涉及日期字段解析失败。问题源于查询条件"张"与包含日期格式的字段冲突。解决方法是将`multiMatchQuery`替换为`queryStringQuery`以避免日期解析错误。
摘要由CSDN通过智能技术生成

nested:ElasticsearchParseException[failed to parse date field ["张"] with format [yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis]]; nested: IllegalArgumentException[Parse failure at index [0] of ["张"]]; }

at com.scistor.label.store.es.LabelStoreClient.search(LabelStoreClient.java:584)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at com.scistor.label.common.labelstore.LabelStoreProxyHandler.invoke(LabelStoreProxyHandler.java:37)

at com.sun.proxy.$Proxy111.search(Unknown Source)

at com.scistor.label.controller.ResultController.nestSearch(ResultController.java:300)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值