Class: Enums::CombineFunctions

Inherits:
Object
  • Object
show all
Defined in:
lib/enums/combine_functions.rb

Overview

Enumerator class for boost modes while combining aggregated function scores together with the sub query score

Class Method Summary collapse

Class Method Details

.avgCombineFunctions

Returns CombineFunctions object corresponding to elasticsearch option of ‘avg’.

Returns:

  • (CombineFunctions)

    CombineFunctions object corresponding to elasticsearch option of ‘avg’



# File 'lib/enums/combine_functions.rb', line 34

.maxCombineFunctions

Returns CombineFunctions object corresponding to elasticsearch option of ‘max’.

Returns:

  • (CombineFunctions)

    CombineFunctions object corresponding to elasticsearch option of ‘max’



# File 'lib/enums/combine_functions.rb', line 39

.minCombineFunctions

Returns CombineFunctions object corresponding to elasticsearch option of ‘min’.

Returns:

  • (CombineFunctions)

    CombineFunctions object corresponding to elasticsearch option of ‘min’



# File 'lib/enums/combine_functions.rb', line 44

.multiplyCombineFunctions

Returns CombineFunctions object corresponding to elasticsearch option of ‘multiply’.

Returns:

  • (CombineFunctions)

    CombineFunctions object corresponding to elasticsearch option of ‘multiply’



# File 'lib/enums/combine_functions.rb', line 19

.replaceCombineFunctions

Returns CombineFunctions object corresponding to elasticsearch option of ‘replace’.

Returns:

  • (CombineFunctions)

    CombineFunctions object corresponding to elasticsearch option of ‘replace’



# File 'lib/enums/combine_functions.rb', line 24

.sumCombineFunctions

Returns CombineFunctions object corresponding to elasticsearch option of ‘sum’.

Returns:

  • (CombineFunctions)

    CombineFunctions object corresponding to elasticsearch option of ‘sum’



# File 'lib/enums/combine_functions.rb', line 29