Currently it looks like this:
map<term_id,
map<pair<document_id, positions_idx>>
inverted_index;
list<positions> positions;Think you also meant to remove the pair in map<pair>?