allowing custom configuration of elastic search