Class DefaultRankProfile

java.lang.Object
com.yahoo.schema.RankProfile
com.yahoo.schema.DefaultRankProfile
All Implemented Interfaces:
Cloneable

public class DefaultRankProfile extends RankProfile
The rank profile containing default settings. This is derived from the fields whenever this is accessed.
Author:
bratseth
  • Constructor Details

    • DefaultRankProfile

      public DefaultRankProfile(Schema schema, RankProfileRegistry rankProfileRegistry)
      Creates a new rank profile
      Parameters:
      rankProfileRegistry - the RankProfileRegistry to use for storing and looking up rank profiles
  • Method Details

    • inherit

      public void inherit(String inheritedName)
      Ignore self inheriting of default as some applications may use that for historical reasons.
      Overrides:
      inherit in class RankProfile
    • getRankSetting

      public RankProfile.RankSetting getRankSetting(String fieldOrIndex, RankProfile.RankSetting.Type type)
      Description copied from class: RankProfile
      Returns a rank setting of field or index, or null if there is no such rank setting in this profile or one it inherits
      Overrides:
      getRankSetting in class RankProfile
      Parameters:
      fieldOrIndex - the field whose settings to return
      type - the type that the field is required to be
      Returns:
      the rank setting found, or null
    • rankSettings

      public Set<RankProfile.RankSetting> rankSettings()
      Returns the names of the fields which have a rank boost setting explicitly in this profile or in fields
      Overrides:
      rankSettings in class RankProfile