Class KeyAndBoost


  • public class KeyAndBoost
    extends DslCloneable
    A field value and boost value combination
    • Constructor Detail

      • KeyAndBoost

        public KeyAndBoost​(java.lang.String key,
                           java.lang.Double boost)
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Returns:
        the field value being boosted
      • getBoost

        public java.lang.Double getBoost()
        Returns:
        a boost to apply to matches to the getKey() field. Must be positive. Though fractional values are accepted for users looking to minimize the impact of particular fields.