InvertedIndex for query