convenience method to build a column index