instantiate inverted-index in the plugin