Package com.yahoo.schema
Class DefaultRankProfile
java.lang.Object
com.yahoo.schema.RankProfile
com.yahoo.schema.DefaultRankProfile
- All Implemented Interfaces:
Cloneable
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.schema.RankProfile
RankProfile.Constant, RankProfile.DiversitySettings, RankProfile.Input, RankProfile.MatchPhaseSettings, RankProfile.MutateOperation, RankProfile.RankFeatureNormalizer, RankProfile.RankingExpressionFunction, RankProfile.RankProperty, RankProfile.RankSetting, RankProfile.TypeSettings
-
Field Summary
Fields inherited from class com.yahoo.schema.RankProfile
FIRST_PHASE, GLOBAL_PHASE, rankSettings, SECOND_PHASE
-
Constructor Summary
ConstructorDescriptionDefaultRankProfile
(Schema schema, RankProfileRegistry rankProfileRegistry) Creates a new rank profile -
Method Summary
Modifier and TypeMethodDescriptiongetRankSetting
(String fieldOrIndex, RankProfile.RankSetting.Type type) Returns a rank setting of field or index, or null if there is no such rank setting in this profile or one it inheritsvoid
Ignore self inheriting of default as some applications may use that for historical reasons.Returns the names of the fields which have a rank boost setting explicitly in this profile or in fieldsMethods inherited from class com.yahoo.schema.RankProfile
add, add, addAttributeType, addFeatureNormalizer, addFunction, addFunction, addInput, addMatchFeatures, addMutateOperation, addMutateOperation, addRankFeatures, addRankProperty, addRankSetting, addRankSetting, addSummaryFeatures, allFilterFields, applicationPackage, clone, compile, constants, declaredConstants, declaredOnnxModels, declaredRankSettingIterator, declaredStrict, filterFields, findFunction, getApproximateThreshold, getAttributeTypes, getFeatureNormalizers, getFirstPhase, getFirstPhaseRanking, getFunctions, getGlobalPhase, getGlobalPhaseRanking, getGlobalPhaseRerankCount, getHiddenMatchFeatures, getIgnoreDefaultRankFeatures, getKeepRankCount, getMatchFeatures, getMatchPhaseSettings, getMinHitsPerThread, getMutateOperations, getNumSearchPartitions, getNumThreadsPerSearch, getPostFilterThreshold, getRankFeatures, getRankProperties, getRankPropertyMap, getRankScoreDropLimit, getRerankCount, getSecondPhase, getSecondPhaseRanking, getSummaryFeatures, getTargetHitsMaxAdjustmentFactor, getTermwiseLimit, inheritedNames, inherits, inputs, isStrict, name, onnxModels, rankSettingIterator, schema, setApproximateThreshold, setFirstPhaseRanking, setGlobalPhaseRanking, setGlobalPhaseRerankCount, setIgnoreDefaultRankFeatures, setInheritedMatchFeatures, setInheritedSummaryFeatures, setKeepRankCount, setMatchPhaseSettings, setMinHitsPerThread, setNumSearchPartitions, setNumThreadsPerSearch, setPostFilterThreshold, setRankProperty, setRankScoreDropLimit, setRerankCount, setSecondPhaseRanking, setStrict, setTargetHitsMaxAdjustmentFactor, setTermwiseLimit, toString, typeContext, typeContext, typeContext
-
Constructor Details
-
DefaultRankProfile
Creates a new rank profile- Parameters:
rankProfileRegistry
- theRankProfileRegistry
to use for storing and looking up rank profiles
-
-
Method Details
-
inherit
Ignore self inheriting of default as some applications may use that for historical reasons.- Overrides:
inherit
in classRankProfile
-
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 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
Returns the names of the fields which have a rank boost setting explicitly in this profile or in fields- Overrides:
rankSettings
in classRankProfile
-