Add index configuration and task.