class RSolr::Message::Document

def field_by_name(name)

returns the *first* field that matches the "name" arg
def field_by_name(name)
  @fields.detect{|f|f.name==name}
end