Added configurable resultClass to elastic