make the type used for indexing configurable