 .then(
 	(body) ->
 		_createIndex 'events'
-#		_createIndex 'groups'
+		_createIndex 'groups'
 	(error) ->
 		console.error 'Elasticsearch cluster is down'
 		throw new Error 'Elastic search cluster is down')

		(result) ->
			query.onSuccess result
		(error) ->
			query.onError error)


# Export set and setGroup functions
exports = module.exports =
	'set': set
	'setGroup': setGroup

		'body': bulkEvents
	.then(
		(result) ->
			query.onSuccess result
		(error) ->
			query.onError
				error: error
				module 'db')


# Add events to ElasticSearch event index
