Package com.yahoo.prelude.query
Class UriItem
- java.lang.Object
-
- All Implemented Interfaces:
HasIndexItem
,IndexedItem
,TaggableItem
,java.lang.Cloneable
public class UriItem extends PhraseItem
An item matching a uri field. This is syntactic sugar for a phrase with anchor items.- 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.Item
connectedBacklink, connectedItem, connectivity, DEFAULT_WEIGHT, explicitSignificance, significance, uniqueID
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEndAnchorItem()
Adds an end anchor as the *current* last item.void
addStartAnchorItem()
Adds a start anchor as the *current* first item.java.lang.String
getArgumentString()
Returns the canonical form of the tokens of this: Either the source string, or if none each token except the start and end anchor separated by spaceboolean
hasEndAnchor()
Returns whether the last item of this is an end anchorboolean
hasStartAnchor()
Returns whether the first item of this is a start anchorboolean
isEndAnchorDefault()
boolean
isStartAnchorDefault()
void
setEndAnchorDefault(boolean endAnchorDefault)
void
setSourceString(java.lang.String sourceString)
void
setStartAnchorDefault(boolean startAnchorDefault)
-
Methods inherited from class com.yahoo.prelude.query.PhraseItem
addItem, addItem, appendBodyString, appendHeadingString, disclose, encode, encodeThis, encodingArity, extractSingleChild, getBlockItem, getIndexedString, getItemType, getName, getNumWords, getWordItem, isExplicit, setExplicit, setIndexName, setItem, shouldParenthize
-
Methods inherited from class com.yahoo.prelude.query.CompositeIndexedItem
appendIndexString, equals, getIndexName, hashCode
-
Methods inherited from class com.yahoo.prelude.query.CompositeTaggableItem
getConnectedItem, getConnectivity, getSignificance, getUniqueID, hasExplicitSignificance, hasUniqueID, setConnectivity, setExplicitSignificance, setSignificance, setUniqueID
-
Methods inherited from class com.yahoo.prelude.query.CompositeItem
adding, clone, ensureNotInSubtree, getItem, getItemCount, getItemIndex, getItemIterator, getTermCount, isLocked, items, lock, removeItem, removeItem
-
Methods inherited from class com.yahoo.prelude.query.Item
addAnnotation, 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, toString, usePositionData
-
-
-
-
Method Detail
-
addStartAnchorItem
public void addStartAnchorItem()
Adds a start anchor as the *current* first item. This does not enforce that the items stays at the start if further items are added.
-
addEndAnchorItem
public void addEndAnchorItem()
Adds an end anchor as the *current* last item. This does not enforce that the items stays at the end if further items are added.
-
hasStartAnchor
public boolean hasStartAnchor()
Returns whether the first item of this is a start anchor
-
hasEndAnchor
public boolean hasEndAnchor()
Returns whether the last item of this is an end anchor
-
isStartAnchorDefault
public boolean isStartAnchorDefault()
-
setStartAnchorDefault
public void setStartAnchorDefault(boolean startAnchorDefault)
-
isEndAnchorDefault
public boolean isEndAnchorDefault()
-
setEndAnchorDefault
public void setEndAnchorDefault(boolean endAnchorDefault)
-
setSourceString
public void setSourceString(java.lang.String sourceString)
-
getArgumentString
public java.lang.String getArgumentString()
Returns the canonical form of the tokens of this: Either the source string, or if none each token except the start and end anchor separated by space
-
-