Inverted index map reduce