Class: FunctionScores::ScoreFunctionBuilder

Inherits:
Object
  • Object
show all
Includes:
AttributesReader
Defined in:
lib/function_scores/score_function_builder.rb

Overview

Base class for function score builder classes

Instance Method Summary collapse

Methods included from AttributesReader

#attributes

Instance Method Details

#functionHash



9
10
11
# File 'lib/function_scores/score_function_builder.rb', line 9

def function
  {}
end

#nameString

Elasticsearch key for the score function class.



15
16
17
# File 'lib/function_scores/score_function_builder.rb', line 15

def name
  self.class::NAME
end