我正在使用弹性搜索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"}]