rewrite inverted file create / search