Exception making Search Query using SearchSourceBuilder

Hi Team,

I started using Elastic Search 5.3 and I used jest client to query elastic search. I used SearchSourceBuilder to build query. I am setting soft timeout in SearchSourceBuilder but elastic search throwing following exception while executing query. Any insights on this

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"}]
... 43 more

It means that the time you are providing needs to include units: 600s for example

Yes I tried to provide value with 600s too and it is showing same exception.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.