Initial import of inverted_index poorly implemented