Split doc index from fm-index and add metadata types