Fixes bug 997816 - Extended elasticsearch timeout for the query service.

@peterbe r?