Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { _index: 'makes',
- _type: 'make',
- _id: '55b8cdbae36236490d00002a',
- status: 409,
- error: 'VersionConflictEngineException[[makes][0] [make][55b8cdbae36236490d00002a]: version conflict, current [168], provided [167]]' }
- var conditions = [];
- conditions.push({
- update: {
- _index: config.elasticSearch.index,
- _type: config.elasticSearch.type,
- _id: id
- }
- });
- conditions.push({
- doc: {
- published: true
- }
- });
- client.bulk({
- body: conditions
- }, function(err, resp) {
- console.log(resp);
- console.log(resp.items[0].update);
- return res.send({success: true, message: "Shows updated successful"})
- });
- [ { update:
- { _index: 'makes',
- _type: 'make',
- _id: '55b8cdbae36236490d00002a' } },
- { doc: { published: true } } ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement