no need to expose TextElementIndex to Ruby