Package com.yahoo.schema
Class DocumentsOnlyRankProfile
java.lang.Object
com.yahoo.schema.RankProfile
com.yahoo.schema.DocumentsOnlyRankProfile
- All Implemented Interfaces:
Cloneable
A rank profile which ignores all calls made to it which may fail in a document only setting.
This is used by the search definition parser when it is requested to parse documents only,
to avoid having to check for this in every method which adds to the rank profile.
(And why do we ever want to parse documents only? Because it is used when generating Java classes
from documents, where the full application package may not be available.)
- 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.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
ConstructorDescriptionDocumentsOnlyRankProfile
(String name, Schema schema, RankProfileRegistry rankProfileRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunction
(String name, List<String> arguments, String expression, boolean inline) void
setFirstPhaseRanking
(String expression) void
setSecondPhaseRanking
(String expression) Methods inherited from class com.yahoo.schema.RankProfile
add, add, addAttributeType, addFunction, addInput, addMatchFeatures, addMutateOperation, addMutateOperation, addRankFeatures, addRankProperty, addRankSetting, addRankSetting, addSummaryFeatures, allFilterFields, applicationPackage, clone, compile, constants, declaredConstants, declaredOnnxModels, declaredRankSettingIterator, declaredStrict, filterFields, findFunction, getApproximateThreshold, getAttributeTypes, getFirstPhase, getFirstPhaseRanking, getFunctions, getGlobalPhase, getGlobalPhaseRanking, getGlobalPhaseRerankCount, getHiddenMatchFeatures, getIgnoreDefaultRankFeatures, getKeepRankCount, getMatchFeatures, getMatchPhaseSettings, getMinHitsPerThread, getMutateOperations, getNumSearchPartitions, getNumThreadsPerSearch, getPostFilterThreshold, getRankFeatures, getRankProperties, getRankPropertyMap, getRankScoreDropLimit, getRankSetting, getRerankCount, getSecondPhase, getSecondPhaseRanking, getSummaryFeatures, getTermwiseLimit, inherit, inheritedNames, inherits, inputs, isStrict, name, onnxModels, rankSettingIterator, rankSettings, schema, setApproximateThreshold, setGlobalPhaseRanking, setGlobalPhaseRerankCount, setIgnoreDefaultRankFeatures, setInheritedMatchFeatures, setInheritedSummaryFeatures, setKeepRankCount, setMatchPhaseSettings, setMinHitsPerThread, setNumSearchPartitions, setNumThreadsPerSearch, setPostFilterThreshold, setRankProperty, setRankScoreDropLimit, setRerankCount, setStrict, setTermwiseLimit, toString, typeContext, typeContext, typeContext
-
Constructor Details
-
DocumentsOnlyRankProfile
public DocumentsOnlyRankProfile(String name, Schema schema, RankProfileRegistry rankProfileRegistry)
-
-
Method Details
-
setFirstPhaseRanking
- Overrides:
setFirstPhaseRanking
in classRankProfile
-
setSecondPhaseRanking
- Overrides:
setSecondPhaseRanking
in classRankProfile
-
addFunction
- Overrides:
addFunction
in classRankProfile
-