require elasticsearch in application