Package com.yahoo.prelude.query
Interface BlockItem
- All Superinterfaces:
HasIndexItem
- All Known Implementing Classes:
AndSegmentItem
,BoolItem
,ExactStringItem
,FuzzyItem
,GeoLocationItem
,IndexedSegmentItem
,IntItem
,MarkerWordItem
,PhraseSegmentItem
,PrefixItem
,RangeItem
,RegExpItem
,SegmentItem
,SubstringItem
,SuffixItem
,TaggableSegmentItem
,TermItem
,WordAlternativesItem
,WordItem
An interface used for anything which represents a single block of query input.
- Author:
- Steinar Knutsen
-
Method Summary
Modifier and TypeMethodDescriptionReturns the substring which is the origin of this item, or null if noneThe untransformed raw text from the user serving as base for this item.If the block has to be resegmented, what operator should be chosen if it is necessary to change operator?boolean
Returns whether this block of text originates from a user and should therefore receive the normal processing applied to raw text (such as stemming).boolean
boolean
isWords()
Returns whether this item represents normal textReturns the value of this term as a stringMethods inherited from interface com.yahoo.prelude.query.HasIndexItem
getIndexName, getNumWords
-
Method Details
-
getRawWord
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
String stringValue()Returns the value of this term as a string -
isFromQuery
boolean isFromQuery()Returns whether this block of text originates from a user and should therefore receive the normal processing applied to raw text (such as stemming). -
isStemmed
boolean isStemmed() -
isWords
boolean isWords()Returns whether this item represents normal text -
getSegmentingRule
SegmentingRule getSegmentingRule()If the block has to be resegmented, what operator should be chosen if it is necessary to change operator?
-