def set_indexed_name(options)
      @indexed_name =
        if options[:as]
          options.delete(:as).to_s
        else
          name = options[:prefix] ? @name.to_s.sub(/^#{options[:prefix]}_/, '') : @name
          "#{@type.indexed_name(name)}#{'m' if multiple? }#{'s' if @stored}#{'v' if more_like_this?}"
        end
    end
def set_indexed_name(options)
      @indexed_name =
        if options[:as]
          options.delete(:as).to_s
        else
          name = options[:prefix] ? @name.to_s.sub(/^#{options[:prefix]}_/, '') : @name
          "#{@type.indexed_name(name)}#{'m' if multiple? }#{'s' if @stored}#{'v' if more_like_this?}"
        end
    end
Determine the indexed name. If the :as option is given use that, otherwise
 create the value based on the indexed_name of the type with additional
 suffixes for multiple, stored, and more_like_this.

 ==== Returns

 String: The field's indexed name