Disable scanning when `index` is defined and update docs.