Flexible indexing of repetitive collections