Renamed "indexName" to "index" and "indexType" to "type" for publicly visible methods, to have a consistent API.