Class: Enums::ScoreModes

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

Overview

Enumerator class for how results of individual score functions will be aggregated

Class Method Summary collapse

Class Method Details

.avgScoreModes

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

Returns:

  • (ScoreModes)

    ScoreModes object corresponding to elasticsearch option of ‘avg’



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

.firstScoreModes

Returns ScoreModes object corresponding to elasticsearch option of ‘first’.

Returns:

  • (ScoreModes)

    ScoreModes object corresponding to elasticsearch option of ‘first’



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

.maxScoreModes

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

Returns:

  • (ScoreModes)

    ScoreModes object corresponding to elasticsearch option of ‘max’



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

.minScoreModes

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

Returns:

  • (ScoreModes)

    ScoreModes object corresponding to elasticsearch option of ‘min’



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

.multiplyScoreModes

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

Returns:

  • (ScoreModes)

    ScoreModes object corresponding to elasticsearch option of ‘multiply’



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

.sumScoreModes

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

Returns:

  • (ScoreModes)

    ScoreModes object corresponding to elasticsearch option of ‘sum’



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