Make automatic indexing configurable

Signed-off-by: Fadion Dashi <jonidashi@gmail.com>