Skip to content

Commit

Permalink
HSEARCH-3103 Add some javadoc to SortMode
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Mar 19, 2020
1 parent 74bbfa2 commit dfd5ff9
Showing 1 changed file with 8 additions and 5 deletions.
Expand Up @@ -7,26 +7,29 @@
package org.hibernate.search.engine.search.common;


/**
* Defines how to pick the value to sort on for multi-valued fields.
*/
public enum SortMode {

/**
* Multivalue the sum of all the values.
* When a field has multiple values, compute the sum of all the values.
*/
SUM,
/**
* Multivalue the lowest value.
* When a field has multiple values, pick the lowest value.
*/
MIN,
/**
* Multivalue the highest value.
* When a field has multiple values, pick the highest value.
*/
MAX,
/**
* Multivalue the average of all the values.
* When a field has multiple values, compute the average of all the values.
*/
AVG,
/**
* Multivalue the median of the values.
* When a field has multiple values, compute the median of all the values.
*/
MEDIAN

Expand Down

0 comments on commit dfd5ff9

Please sign in to comment.