Skip to content

node.js client search timeout doesn't work (for me) #186

@liorg2

Description

@liorg2

i have a heavy query, with complicated script, and i want to give this query larger timeout.

but no matter, what number i put there, the timeout happens after 30 seconds.

here is the code:

var queryBegin = moment();
client.search({
index: strIndices,
type: "xxx",
ignoreUnavailable: true,
timeout: 600000,
body: body

}, function (error, response) {
var queryEnd = moment();
console.log("query callback. duration: " +(queryEnd-queryBegin) + " ms ");

and the console shows:
query callback. duration: 30009 ms
Request Timeout after 30000ms

thanks a lot
Lior

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions