add a declarative way of specifying index views, closes #69