Skip to content

Deprecated

Vincent Voyer edited this page Apr 14, 2015 · 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,
  maxQueriesPerIPPerHour,
  maxHitsPerQuery
}, callback)

index.addUserKeyWithValidity()

You can now use:

index.addUserKey(acls, {
  validity,
  maxQueriesPerIPPerHour,
  maxHitsPerQuery
}, callback)
Clone this wiki locally