Package com.yahoo.prelude.query
Interface BlockItem
-
- All Superinterfaces:
HasIndexItem
- All Known Implementing Classes:
AndSegmentItem
,BoolItem
,ExactStringItem
,GeoLocationItem
,IndexedSegmentItem
,IntItem
,MarkerWordItem
,PhraseSegmentItem
,PrefixItem
,RangeItem
,RegExpItem
,SegmentItem
,SubstringItem
,SuffixItem
,TaggableSegmentItem
,TermItem
,WordAlternativesItem
,WordItem
public interface BlockItem extends HasIndexItem
An interface used for anything which represents a single block of query input.- Author:
- Steinar Knutsen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Substring
getOrigin()
Returns the substring which is the origin of this item, or null if nonejava.lang.String
getRawWord()
The untransformed raw text from the user serving as base for this item.SegmentingRule
getSegmentingRule()
If the block has to be resegmented, what operator should be chosen if it is necessary to change operator?boolean
isFromQuery()
Is this block of text conceptually from the user query?boolean
isStemmed()
boolean
isWords()
Does this item represent "usual words"?java.lang.String
stringValue()
Returns the value of this term as a string-
Methods inherited from interface com.yahoo.prelude.query.HasIndexItem
getIndexName, getNumWords
-
-
-
-
Method Detail
-
getRawWord
java.lang.String getRawWord()
The untransformed raw text from the user serving as base for this item.
-
getOrigin
Substring getOrigin()
Returns the substring which is the origin of this item, or null if none
-
stringValue
java.lang.String stringValue()
Returns the value of this term as a string
-
isFromQuery
boolean isFromQuery()
Is this block of text conceptually from the user query?
-
isStemmed
boolean isStemmed()
-
isWords
boolean isWords()
Does this item represent "usual words"?
-
getSegmentingRule
SegmentingRule getSegmentingRule()
If the block has to be resegmented, what operator should be chosen if it is necessary to change operator?
-
-