Class DefaultRankProfile

  • All Implemented Interfaces:
    java.lang.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 Detail

      • DefaultRankProfile

        public DefaultRankProfile​(Search search,
                                  RankProfileRegistry rankProfileRegistry)
        Creates a new rank profile
        Parameters:
        rankProfileRegistry - The RankProfileRegistry to use for storing and looking up rank profiles.
    • Method Detail

      • setInherited

        public void setInherited​(java.lang.String inheritedName)
        Does nothing, the default rank profile can not inherit anything
        Overrides:
        setInherited in class RankProfile
      • getInheritedName

        public java.lang.String getInheritedName()
        Returns null, the default rank profile can not inherit anything
        Overrides:
        getInheritedName in class RankProfile
      • getRankSetting

        public RankProfile.RankSetting getRankSetting​(java.lang.String fieldOrIndex,
                                                      RankProfile.RankSetting.Type type)
        Returns the rank boost value of the given field
        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