def text_fields(field_name)
      if text_fields = text_fields_hash[field_name.to_sym]
        text_fields.to_a
      else
        raise(
          UnrecognizedFieldError,
          "No text field configured for #{@types * ', '} with name '#{field_name}'"
        )
      end
    end
def text_fields(field_name)
      if text_fields = text_fields_hash[field_name.to_sym]
        text_fields.to_a
      else
        raise(
          UnrecognizedFieldError,
          "No text field configured for #{@types * ', '} with name '#{field_name}'"
        )
      end
    end
Get a text field object by its public name. A field will be returned if
 it is configured for any of the enclosed types.

 ==== Returns

 Sunspot::FulltextField:: Text field with the given public name

 ==== Raises

 UnrecognizedFieldError::
   If no field with that name is configured for any of the enclosed types.