Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java ElasticSearch 5.5 ParsingException[[sort]查询格式不正确,查询名称后没有start\u对象]_Java_<img Src="//i.stack.imgur.com/A3TTx.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch 5 - Fatal编程技术网 elasticsearch-5,Java,elasticsearch 5" /> elasticsearch-5,Java,elasticsearch 5" />

Java ElasticSearch 5.5 ParsingException[[sort]查询格式不正确,查询名称后没有start\u对象]

Java ElasticSearch 5.5 ParsingException[[sort]查询格式不正确,查询名称后没有start\u对象],java,elasticsearch-5,Java,elasticsearch 5,我有一个在Sense/Kibana Dev工具中运行的查询,在使用javaapi传输客户端执行时不会运行 查询: {\"sort\": [{\"_score\": {\"order\": \"desc\"}},{\"CREATED_DATE\": {\"order\": \"desc\"}}],\"query\": {\"bool\": {\"filter\": {\"bool\": {\"must\": []}},"+ "\"must\": {\"bool\": {\"should\": [{

我有一个在Sense/Kibana Dev工具中运行的查询,在使用javaapi传输客户端执行时不会运行

查询:

{\"sort\": [{\"_score\": {\"order\": \"desc\"}},{\"CREATED_DATE\": {\"order\": \"desc\"}}],\"query\": {\"bool\": {\"filter\": {\"bool\": {\"must\": []}},"+
"\"must\": {\"bool\": {\"should\": [{\"bool\": {\"should\": [{\"match_phrase_prefix\": {\"property\": \"value\"}}]}}]}}}},\"from\": 0,\"size\": 2000}
爪哇:

结果:

执行阶段【查询】失败,所有碎片失败; ParsingException[[sort]查询格式不正确,查询后没有start\u对象 [姓名]

WrapperQueryBuilder builder = QueryBuilders.wrapperQuery(Query);

SearchRequestBuilder req = client.prepareSearch("myIndex").setTypes("myType").setQuery(builder);

MultiSearchResponse Res = client.prepareMultiSearch().add(req).get();