-
Notifications
You must be signed in to change notification settings - Fork 221
Deprecated
Haroen Viaene edited this page Oct 11, 2017
·
18 revisions
⚠️ all these methods will be completely removed in v4
To issue multiple queries, use:
client.search([{
indexName: 'first index',
query: 'something',
params: {
hitsPerPage: 200
}
}, {
indexName: 'first index',
query: 'something',
params: {
hitsPerPage: 200
}
}], callback);
To issue multiple queries, use:
client.search([{
indexName: 'first index',
query: 'something',
params: {
hitsPerPage: 200
}
}, {
indexName: 'first index',
query: 'something',
params: {
hitsPerPage: 200
}
}], callback);
To issue multiple queries, use:
client.search([{
indexName: 'first index',
query: 'something',
params: {
hitsPerPage: 200
}
}, {
indexName: 'first index',
query: 'something',
params: {
hitsPerPage: 200
}
}], callback);
You can now use:
client.addUserKey(acls, {
validity: value,
maxQueriesPerIPPerHour: value,
maxHitsPerQuery: value,
indexes: value
}, callback)
client.addApiKey(['search']);
client.listApiKeys()
index.addApiKey(['search']);
index.listApiKeys()
You can now use:
index.addUserKey(acls, {
validity: value,
maxQueriesPerIPPerHour: value,
maxHitsPerQuery: value
}, callback)
This feature is replaced by index.deleteBy
. deleteBy
only accepts an object with searchParameters as its first argument.
index.deleteBy({
query: 'something',
}, callback);
This new method is implemented in an atomic way on our side, instead of browsing and deleting at the client-side before, so there might be differences possible in what exactly get deleted.
You can use waitForCompletion()
now, which has a slightly different syntax:
index.waitForCompletion(taskId, callback);
forwardToSlaves
options were renamed to forwardToReplicas
.