Skip to content

Deprecated

Haroen Viaene edited this page Jul 20, 2017 · 18 revisions

client.startQueriesBatch()

To issue multiple queries, use:

client.search([{
  indexName: 'first index',
  query: 'something',
  params: {
    hitsPerPage: 200
  }
}, {
  indexName: 'first index',
  query: 'something',
  params: {
    hitsPerPage: 200
  }
}], callback);

client.addQueryInBatch()

To issue multiple queries, use:

client.search([{
  indexName: 'first index',
  query: 'something',
  params: {
    hitsPerPage: 200
  }
}, {
  indexName: 'first index',
  query: 'something',
  params: {
    hitsPerPage: 200
  }
}], callback);

client.sendQueriesBatch()

To issue multiple queries, use:

client.search([{
  indexName: 'first index',
  query: 'something',
  params: {
    hitsPerPage: 200
  }
}, {
  indexName: 'first index',
  query: 'something',
  params: {
    hitsPerPage: 200
  }
}], callback);

client.addUserKeyWithValidity()

You can now use:

client.addUserKey(acls, {
  validity: value,
  maxQueriesPerIPPerHour: value,
  maxHitsPerQuery: value,
  indexes: value
}, callback)

client.addUserKey()

client.addApiKey(['search']);

client.listUserKeys()

client.listApiKeys()

index.addUserKey()

index.addApiKey(['search']);

index.listUserKeys()

index.listApiKeys()

index.addUserKeyWithValidity()

You can now use:

index.addUserKey(acls, {
  validity: value,
  maxQueriesPerIPPerHour: value,
  maxHitsPerQuery: value
}, callback)

forwardToSlaves

forwardToSlaves options were renamed to forwardToReplicas.

index.addObject()

All singular methods like index.addObject are replaced by their plural version. This simply means that you can wrap the single object in an array, and it will work as before:

const obj = {
  objectId: 'some-object',
  // more things
};

index.addObjects([obj]);

index.addObject(obj)

All singular methods like index.addObject are replaced by their plural version. This simply means that you can wrap the single object in an array, and it will work as before:

const obj = {
  objectId: 'some-object',
  // more things
};

index.addObjects([obj]);

index.partialUpdateObject(obj)

All singular methods like index.partialUpdateObject are replaced by their plural version. This simply means that you can wrap the single object in an array, and it will work as before:

const obj = {
  objectId: 'some-object',
  // more things
};

index.partialUpdateObjects([obj]);

index.saveObject(obj)

All singular methods like index.saveObject are replaced by their plural version. This simply means that you can wrap the single object in an array, and it will work as before:

const obj = {
  objectId: 'some-object',
  // more things
};

index.saveObjects([obj]);

index.deleteObject(objectID)

All singular methods like index.deleteObject are replaced by their plural version. This simply means that you can wrap the single object in an array, and it will work as before:

index.deleteObjects([objectID]);

index.getObject(objectID)

All singular methods like index.getObject are replaced by their plural version. This simply means that you can wrap the single object in an array, and it will work as before:

index.getObjects([objectID]);
Clone this wiki locally