Package com.yahoo.searchdefinition
Class DefaultRankProfile
- java.lang.Object
-
- com.yahoo.searchdefinition.RankProfile
-
- com.yahoo.searchdefinition.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.searchdefinition.RankProfile
RankProfile.DiversitySettings, RankProfile.MatchPhaseSettings, RankProfile.RankingExpressionFunction, RankProfile.RankProperty, RankProfile.RankSetting, RankProfile.TypeSettings
-
-
Field Summary
-
Fields inherited from class com.yahoo.searchdefinition.RankProfile
rankSettings
-
-
Constructor Summary
Constructors Constructor Description DefaultRankProfile(Search search, RankProfileRegistry rankProfileRegistry)
Creates a new rank profile
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInheritedName()
Returns null, the default rank profile can not inherit anythingRankProfile.RankSetting
getRankSetting(java.lang.String fieldOrIndex, RankProfile.RankSetting.Type type)
Returns the rank boost value of the given fieldjava.util.Set<RankProfile.RankSetting>
rankSettings()
Returns the names of the fields which have a rank boost setting explicitly in this profile or in fieldsvoid
setInherited(java.lang.String inheritedName)
Does nothing, the default rank profile can not inherit anything-
Methods inherited from class com.yahoo.searchdefinition.RankProfile
addAttributeType, addConstant, addConstantTensor, addFunction, addFunction, addQueryFeatureType, addRankFeatures, addRankProperty, addRankSetting, addRankSetting, addSummaryFeatures, allFilterFields, applicationPackage, clone, compile, declaredRankSettingIterator, filterFields, findFunction, getAttributeTypes, getConstants, getFirstPhaseRanking, getFunctions, getIgnoreDefaultRankFeatures, getInherited, getKeepRankCount, getMatchPhaseSettings, getMinHitsPerThread, getName, getNumSearchPartitions, getNumThreadsPerSearch, getQueryFeatureTypes, getRankFeatures, getRankProperties, getRankPropertyMap, getRankScoreDropLimit, getRerankCount, getSearch, getSecondPhaseRanking, getSummaryFeatures, getTermwiseLimit, inherits, rankingConstants, rankSettingIterator, setFirstPhaseRanking, setIgnoreDefaultRankFeatures, setInheritedSummaryFeatures, setKeepRankCount, setMatchPhaseSettings, setMinHitsPerThread, setNumSearchPartitions, setNumThreadsPerSearch, setRankScoreDropLimit, setRerankCount, setSecondPhaseRanking, setSecondPhaseRanking, setTermwiseLimit, toString, typeContext, typeContext
-
-
-
-
Constructor Detail
-
DefaultRankProfile
public DefaultRankProfile(Search search, RankProfileRegistry rankProfileRegistry)
Creates a new rank profile- Parameters:
rankProfileRegistry
- TheRankProfileRegistry
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 classRankProfile
-
getInheritedName
public java.lang.String getInheritedName()
Returns null, the default rank profile can not inherit anything- Overrides:
getInheritedName
in classRankProfile
-
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 classRankProfile
- Parameters:
fieldOrIndex
- the field whose settings to returntype
- the type that the field is required to be- Returns:
- the rank setting found, or null
-
rankSettings
public java.util.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 classRankProfile
-
-