Templating of indexing