'Lookup by key : return the list of records where
field value is equal to this key, or an empty list'

def __getitem__(self, key):

    ids = self.db.indices[self.field].get(key, [])
    return [self.db.records[_id] for _id in ids]
