Facet and SortField inherit from Index, as basically the same code but diff element names. added getElementName() and getDefaultElementName() so that the subclasses can use their own element names