Port some private functions as index class methods on elasticsearch backend.