Configure elasticsearch