Add name-based indexing to RecordSpecification