Adds elasticsearch support.