Support different indexes.