Generalized Inverted Indexing