fixed: only show published documents in the index.