Add self-implemented elasticsearch