dedup for inverted index.