Class: FunctionScores::ScoreFunctionBuilder
- Inherits:
-
Object
- Object
- FunctionScores::ScoreFunctionBuilder
- Includes:
- AttributesReader
- Defined in:
- lib/function_scores/score_function_builder.rb
Overview
Base class for function score builder classes
Direct Known Subclasses
RandomScoreFunctionBuilder, ScriptScoreFunctionBuilder, WeightedScoreFunctionBuilder
Instance Method Summary collapse
-
#function ⇒ Hash
Serialized json query for the object.
-
#name ⇒ String
Elasticsearch key for the score function class.
Methods included from AttributesReader
Instance Method Details
#function ⇒ Hash
Returns serialized json query for the object.
9 10 11 |
# File 'lib/function_scores/score_function_builder.rb', line 9 def function {} end |
#name ⇒ String
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 |