supporting multiple indices with the same key in flat backend