add inverted index