Package com.yahoo.searchdefinition
Class DocumentsOnlyRankProfile
- java.lang.Object
-
- com.yahoo.searchdefinition.RankProfile
-
- com.yahoo.searchdefinition.DocumentsOnlyRankProfile
-
- All Implemented Interfaces:
java.lang.Cloneable
public class DocumentsOnlyRankProfile extends RankProfile
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.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 DocumentsOnlyRankProfile(java.lang.String name, Search search, RankProfileRegistry rankProfileRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFunction(java.lang.String name, java.util.List<java.lang.String> arguments, java.lang.String expression, boolean inline)
Adds a functionvoid
setFirstPhaseRanking(java.lang.String expression)
void
setSecondPhaseRanking(java.lang.String expression)
-
Methods inherited from class com.yahoo.searchdefinition.RankProfile
addAttributeType, addConstant, addConstantTensor, addFunction, addQueryFeatureType, addRankFeatures, addRankProperty, addRankSetting, addRankSetting, addSummaryFeatures, allFilterFields, applicationPackage, clone, compile, declaredRankSettingIterator, filterFields, findFunction, getAttributeTypes, getConstants, getFirstPhaseRanking, getFunctions, getIgnoreDefaultRankFeatures, getInherited, getInheritedName, getKeepRankCount, getMatchPhaseSettings, getMinHitsPerThread, getName, getNumSearchPartitions, getNumThreadsPerSearch, getQueryFeatureTypes, getRankFeatures, getRankProperties, getRankPropertyMap, getRankScoreDropLimit, getRankSetting, getRerankCount, getSearch, getSecondPhaseRanking, getSummaryFeatures, getTermwiseLimit, inherits, rankingConstants, rankSettingIterator, rankSettings, setIgnoreDefaultRankFeatures, setInherited, setInheritedSummaryFeatures, setKeepRankCount, setMatchPhaseSettings, setMinHitsPerThread, setNumSearchPartitions, setNumThreadsPerSearch, setRankScoreDropLimit, setRerankCount, setSecondPhaseRanking, setTermwiseLimit, toString, typeContext, typeContext
-
-
-
-
Constructor Detail
-
DocumentsOnlyRankProfile
public DocumentsOnlyRankProfile(java.lang.String name, Search search, RankProfileRegistry rankProfileRegistry)
-
-
Method Detail
-
setFirstPhaseRanking
public void setFirstPhaseRanking(java.lang.String expression)
- Overrides:
setFirstPhaseRanking
in classRankProfile
-
setSecondPhaseRanking
public void setSecondPhaseRanking(java.lang.String expression)
- Overrides:
setSecondPhaseRanking
in classRankProfile
-
addFunction
public void addFunction(java.lang.String name, java.util.List<java.lang.String> arguments, java.lang.String expression, boolean inline)
Description copied from class:RankProfile
Adds a function- Overrides:
addFunction
in classRankProfile
-
-