ensure that every doc retrieved through search has an id field.