Support soft timeout ( limiting fetching ) on Elasticsearch

Description

Hard timeout is implemented by us client side.
For the soft timeout we need to rely on Elasticsearch, but it seems that there is an issue related to the fact that:

Timeout resolution is very low, so it's uneffective unless the query takes a really long time to execute.

See full discussion here: https://github.com/hibernate/hibernate-search/pull/2158#commitcomment-36306546

 

Environment

None

Assignee

Unassigned

Reporter

Fabio Massimo Ercoli

Labels

None

Suitable for new contributors

Yes, likely

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Minor
Configure