对elasticsearch进行搜索查询时出现异常

时间:2017-08-10 16:22:30

标签: elasticsearch jest

我正在使用弹性搜索5.3,为此,我使用了jest client 2.0.4。

我有用例在执行搜索查询时提供软超时我在

中提供了
SearchSourceBuilder searchSourceBuilder = SearchSourceBuilder.searchSource().from(10).size(100).timeout(100).build;

但我收到以下异常

Caused by: ElasticsearchException[Error while executing the query: {"root_cause":[{"type":"parse_exception",      "reason":"failed to parse setting [timeout] with value [600] as a time value: unit is missing or                  unrecognized"}],"type":"parse_exception","reason":"failed to parse setting [timeout] with value [600] as a time   value: unit is missing or unrecognized"}]

0 个答案:

没有答案