Generalized index and lookup