Custom datatype indexing