public class MatchPhase extends Object implements Cloneable
For this feature to work well, the order given by the attribute should correlate reasonably with the order of results produced if full evaluation is performed.
Modifier and Type | Field and Description |
---|---|
private static QueryProfileType |
argumentType
The type representing the property arguments consumed by this
|
private boolean |
ascending |
static String |
ASCENDING |
private String |
attribute |
static String |
ATTRIBUTE |
private Diversity |
diversity |
static String |
MAX_FILTER_COVERAGE |
static String |
MAX_HITS |
private Double |
maxFilterCoverage |
private Long |
maxHits |
Constructor and Description |
---|
MatchPhase() |
Modifier and Type | Method and Description |
---|---|
MatchPhase |
clone() |
boolean |
equals(Object o) |
static QueryProfileType |
getArgumentType() |
boolean |
getAscending()
Returns the order to sort the attribute during the path phase when this takes effect.
|
String |
getAttribute()
Returns the attribute to use for degradation, or null if none
|
Diversity |
getDiversity() |
Double |
getMaxFilterCoverage() |
Long |
getMaxHits()
Returns the max hits to aim for producing in the match phase on each content node, or null if not set
|
int |
hashCode() |
void |
prepare(RankProperties rankProperties)
Internal operation - DO NOT USE
|
void |
setAscending(boolean ascending)
Set to true to sort by the attribute in ascending order when this is in use during the match phase,
false (default) to use descending order.
|
void |
setAttribute(String attribute)
Sets the attribute field which will be used to decide the best matches after it has been determined
during matching that this query is going to cause too many matches.
|
void |
setDiversity(Diversity diversity) |
void |
setMaxFilterCoverage(double maxFilterCoverage) |
void |
setMaxHits(long maxHits)
Sets the max hits to aim for producing in the match phase.
|
private static final QueryProfileType argumentType
public static final String ATTRIBUTE
public static final String ASCENDING
public static final String MAX_HITS
public static final String MAX_FILTER_COVERAGE
private String attribute
private boolean ascending
private Long maxHits
private Double maxFilterCoverage
private Diversity diversity
public static QueryProfileType getArgumentType()
public void setAttribute(String attribute)
If this is set, make sure to also set the maxHits value. Otherwise, the attribute setting is ignored.
This attribute should have fast-search turned on.
public String getAttribute()
public void setAscending(boolean ascending)
public boolean getAscending()
public void setMaxHits(long maxHits)
public void setMaxFilterCoverage(double maxFilterCoverage)
public Long getMaxHits()
public Double getMaxFilterCoverage()
public Diversity getDiversity()
public void setDiversity(Diversity diversity)
public void prepare(RankProperties rankProperties)
public MatchPhase clone()
Copyright © 2018. All rights reserved.