Gets an index range of datoms