Package com.yahoo.prelude.query
Class ONearItem
java.lang.Object
com.yahoo.prelude.query.Item
com.yahoo.prelude.query.CompositeItem
com.yahoo.prelude.query.NearItem
com.yahoo.prelude.query.ONearItem
- All Implemented Interfaces:
Cloneable
Ordered NearItem.
Matches as a near operator, but also demands that the operands have the
same order in the document as in the query.
- Author:
- bratseth
-
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.NearItem
defaultDistance, distance, exclusionDistance, numNegativeItemsFields inherited from class com.yahoo.prelude.query.Item
connectedBacklink, connectedItem, connectivity, DEFAULT_WEIGHT, documentFrequency, explicitSignificance, significance, uniqueID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the enumerated type of this item.getName()Returns the name of this itemMethods inherited from class com.yahoo.prelude.query.NearItem
appendHeadingString, disclose, encodeThis, equals, getDistance, getExclusionDistance, getNumNegativeItems, hashCode, setDistance, setExclusionDistance, setNumNegativeItemsMethods inherited from class com.yahoo.prelude.query.CompositeItem
acceptsItemsOfType, adding, addItem, addItem, appendBodyString, clone, encode, encodingArity, ensureNotInSubtree, extractSingleChild, getItem, getItemCount, getItemIndex, getItemIterator, getTermCount, isLocked, items, lock, removeItem, removeItem, setIndexName, setItem, shouldParenthesizeMethods inherited from class com.yahoo.prelude.query.Item
addAnnotation, getAnnotation, getBytes, getCode, getCreator, getLabel, getLanguage, getParent, getWeight, hasAnnotation, hasConnectivityBackLink, hasPrefixMatchSemantics, hasUniqueID, isFilter, isFromSpecialToken, isProtected, isRanked, isRoot, putBytes, putString, setCreator, setFilter, setFromSpecialToken, setHasUniqueID, setLabel, setLanguage, setParent, setPositionData, setProtected, setRanked, setWeight, toString, usePositionData
-
Constructor Details
-
ONearItem
public ONearItem()Creates a ordered NEAR item with limit 2 -
ONearItem
public ONearItem(int distance) Creates a ordered near item which matches if there are at mostdistanceseparation between the words, in the right direction.
-
-
Method Details