class Tire::Search::ScriptField

www.elasticsearch.org/guide/reference/api/search/script-fields.html www.elasticsearch.org/guide/reference/modules/scripting.html

Public Class Methods

new(name, options) click to toggle source
# File lib/tire/search/script_field.rb, line 9
def initialize(name, options)
  @hash = { name => options }
end

Public Instance Methods

to_hash() click to toggle source
# File lib/tire/search/script_field.rb, line 17
def to_hash
  @hash
end
to_json(options={}) click to toggle source
# File lib/tire/search/script_field.rb, line 13
def to_json(options={})
  to_hash.to_json
end