Package com.yahoo.prelude.query
Class DotProductItem
java.lang.Object
com.yahoo.prelude.query.Item
com.yahoo.prelude.query.SimpleTaggableItem
com.yahoo.prelude.query.WeightedSetItem
com.yahoo.prelude.query.DotProductItem
- All Implemented Interfaces:
TaggableItem
,Cloneable
A weighted set query item to be evaluated as a sparse dot product.
The resulting dot product will be available as a raw score in the rank framework.
- Author:
- havardpe
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.prelude.query.Item
Item.ItemCreator, Item.ItemType
-
Field Summary
Fields inherited from class com.yahoo.prelude.query.Item
connectedBacklink, connectedItem, connectivity, DEFAULT_WEIGHT, explicitSignificance, significance, uniqueID
-
Constructor Summary
ConstructorsConstructorDescriptionDotProductItem
(String indexName) DotProductItem
(String indexName, Map<Object, Integer> map) -
Method Summary
Modifier and TypeMethodDescriptionReturn the enumerated type of this item.Methods inherited from class com.yahoo.prelude.query.WeightedSetItem
addToken, addToken, addToken, appendBodyString, clone, disclose, encode, encodeThis, equals, getIndexName, getName, getNumTokens, getTermCount, getTokens, getTokenWeight, hashCode, removeToken, setIndexName
Methods inherited from class com.yahoo.prelude.query.SimpleTaggableItem
getConnectedItem, getConnectivity, getSignificance, getUniqueID, hasExplicitSignificance, hasUniqueID, setConnectivity, setExplicitSignificance, setSignificance, setUniqueID
Methods inherited from class com.yahoo.prelude.query.Item
addAnnotation, appendHeadingString, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, shouldParenthesize, toString, usePositionData
-
Constructor Details
-
DotProductItem
-
DotProductItem
-
-
Method Details
-
getItemType
Description copied from class:Item
Return the enumerated type of this item.- Overrides:
getItemType
in classWeightedSetItem
-