public class WandItem extends WeightedSetItem
Item.ItemCreator, Item.ItemType
Modifier and Type | Field and Description |
---|---|
private double |
scoreThreshold |
private int |
targetNumHits |
private double |
thresholdBoostFactor |
connectedBacklink, connectedItem, connectivity, DEFAULT_WEIGHT, explicitSignificance, significance, uniqueID
Constructor and Description |
---|
WandItem(String fieldName,
int targetNumHits)
Creates an empty WandItem.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendHeadingString(StringBuilder buffer)
Appends the heading of this string.
|
void |
disclose(Discloser discloser) |
protected void |
encodeThis(ByteBuffer buffer) |
Item.ItemType |
getItemType()
Return the enumerated type of this item.
|
double |
getScoreThreshold() |
int |
getTargetNumHits() |
double |
getThresholdBoostFactor() |
void |
setScoreThreshold(double scoreThreshold)
Sets the initial score threshold used by the backend search operator handling this WandItem.
|
void |
setThresholdBoostFactor(double thresholdBoostFactor)
Sets the boost factor used by the backend search operator to boost the threshold before
comparing it with the upper bound score of the document being evaluated.
|
addToken, addToken, addToken, appendBodyString, clone, encode, getIndexName, getName, getNumTokens, getTermCount, getTokens, getTokenWeight, removeToken, setIndexName
getConnectedItem, getConnectivity, getSignificance, getUniqueID, hasExplicitSignificance, hasUniqueID, setConnectivity, setExplicitSignificance, setSignificance, setUniqueID
addAnnotation, equals, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, hashCode, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, shouldParenthize, toString, usePositionData
private int targetNumHits
private double scoreThreshold
private double thresholdBoostFactor
public WandItem(String fieldName, int targetNumHits)
fieldName
- The name of the weighted set field to search with this WandItem.targetNumHits
- The target for minimum number of hits to produce by the backend search operator handling this WandItem.public void setScoreThreshold(double scoreThreshold)
scoreThreshold
- the initial score threshold.public void setThresholdBoostFactor(double thresholdBoostFactor)
thresholdBoostFactor
- the boost factor.public int getTargetNumHits()
public double getScoreThreshold()
public double getThresholdBoostFactor()
public Item.ItemType getItemType()
Item
getItemType
in class WeightedSetItem
protected void encodeThis(ByteBuffer buffer)
encodeThis
in class WeightedSetItem
protected void appendHeadingString(StringBuilder buffer)
Item
appendHeadingString
in class Item
public void disclose(Discloser discloser)
disclose
in class WeightedSetItem
Copyright © 2017. All rights reserved.