Modifier and Type | Field and Description |
---|---|
private static QueryProfileType |
argumentType
The type representing the property arguments consumed by this
|
private static com.yahoo.processing.request.CompoundName |
argumentTypeName |
static String |
DIVERSITY |
static String |
FEATURES |
private Freshness |
freshness |
static String |
FRESHNESS |
static String |
LIST_FEATURES |
private boolean |
listFeatures
Set to true to include the value of "all" rank features in the result
|
private Location |
location
The location of the query is used for distance ranking
|
static String |
LOCATION |
static String |
MATCH_PHASE |
private Matching |
matching |
static String |
MATCHING |
private MatchPhase |
matchPhase |
private Query |
parent |
private String |
profile
The name of the rank profile to use
|
static String |
PROFILE |
static String |
PROPERTIES |
private boolean |
queryCache |
static String |
QUERYCACHE |
private RankFeatures |
rankFeatures |
static com.yahoo.processing.request.CompoundName |
RANKFEATURES
An alias for listing features
|
static String |
RANKING |
private RankProperties |
rankProperties |
private SoftTimeout |
softTimeout |
static String |
SOFTTIMEOUT |
private Sorting |
sorting
How the query should be sorted
|
static String |
SORTING |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object o) |
static QueryProfileType |
getArgumentType() |
RankFeatures |
getFeatures()
Returns the rank features of this, an empty container (never null) if none are set.
|
Freshness |
getFreshness()
Get the freshness search parameters associated with this query
|
static Ranking |
getFrom(Query q) |
boolean |
getListFeatures()
Returns whether rank features should be dumped with the result of this query, default false
|
Location |
getLocation()
Returns the location of this query, or null if none
|
Matching |
getMatching()
Returns the matching settings of this.
|
MatchPhase |
getMatchPhase()
Returns the match phase rank settings of this.
|
String |
getProfile()
Returns the name of the rank profile to be used.
|
RankProperties |
getProperties()
Returns the rank properties of this, an empty container (never null) if none are set.
|
boolean |
getQueryCache() |
SoftTimeout |
getSoftTimeout()
Returns the soft timeout settings of this.
|
Sorting |
getSorting()
Returns the sorting spec of this query, or null if none is set
|
int |
hashCode() |
boolean |
hasRankProfile()
Returns whether a rank profile has been explicitly set.
|
void |
prepare() |
private void |
prepareNow(Freshness freshness) |
void |
setFreshness(Freshness freshness) |
void |
setFreshness(String dateTime)
Set the freshness search parameters for this query
|
void |
setListFeatures(boolean listFeatures)
Set whether rank features should be included with the result of this query
|
void |
setLocation(Location location) |
void |
setLocation(String str)
Sets the location from a string, see
Location for syntax |
void |
setProfile(String profile)
Sets the name of the rank profile to use.
|
void |
setQueryCache(boolean queryCache)
Returns whether feature caching is turned on in the backed.
|
void |
setSorting(Sorting sorting)
Sets how this query should be sorted.
|
void |
setSorting(String sortingString)
Sets sorting from a string.
|
public static final com.yahoo.processing.request.CompoundName RANKFEATURES
private static final QueryProfileType argumentType
private static final com.yahoo.processing.request.CompoundName argumentTypeName
public static final String RANKING
public static final String LOCATION
public static final String PROFILE
public static final String SORTING
public static final String LIST_FEATURES
public static final String FRESHNESS
public static final String QUERYCACHE
public static final String MATCH_PHASE
public static final String DIVERSITY
public static final String SOFTTIMEOUT
public static final String MATCHING
public static final String FEATURES
public static final String PROPERTIES
private Query parent
private Location location
private String profile
private Sorting sorting
private boolean listFeatures
private Freshness freshness
private boolean queryCache
private RankProperties rankProperties
private RankFeatures rankFeatures
private MatchPhase matchPhase
private Matching matching
private SoftTimeout softTimeout
public Ranking(Query parent)
public static QueryProfileType getArgumentType()
public boolean hasRankProfile()
public Freshness getFreshness()
public void setFreshness(String dateTime)
public void setFreshness(Freshness freshness)
public void setQueryCache(boolean queryCache)
Default is false (off).
public boolean getQueryCache()
public Location getLocation()
public void setLocation(Location location)
public void setLocation(String str)
Location
for syntaxpublic String getProfile()
public void setProfile(String profile)
public RankFeatures getFeatures()
public RankProperties getProperties()
public void setListFeatures(boolean listFeatures)
public boolean getListFeatures()
public MatchPhase getMatchPhase()
public Matching getMatching()
public SoftTimeout getSoftTimeout()
public Sorting getSorting()
public void setSorting(Sorting sorting)
public void setSorting(String sortingString)
Sorting
on syntaxpublic void prepare()
private void prepareNow(Freshness freshness)
Copyright © 2018. All rights reserved.