update examples/hierarchy to use addIndex(options)