class FunctionScoreBuilders
Factory class for function scores.
Public Class Methods
random_score_function()
click to toggle source
@return [FunctionScores::RandomScoreFunctionBuilder]
random_score_function_builder object
# File lib/function_score_builders.rb, line 7 def self.random_score_function FunctionScores::RandomScoreFunctionBuilder.new end
script_score_function(*args)
click to toggle source
@params [Scripts::Script] script object for the function @return [FunctionScores::ScriptScoreFunctionBuilder]
script_score_function_builder object with the provided script
# File lib/function_score_builders.rb, line 15 def self.script_score_function(*args) FunctionScores::ScriptScoreFunctionBuilder.new(*args) end
weighted_score_function()
click to toggle source
@return [FunctionScores::WeightedScoreFunctionBuilder]
weighted_score_function_builder object
# File lib/function_score_builders.rb, line 21 def self.weighted_score_function FunctionScores::WeightedScoreFunctionBuilder.new end