java.lang.Object
org.apache.lucene.search.highlight.TextFragment
Low-level class used to record information about a section of a document with a score.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) CharSequence(package private) float(package private) int(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfollows(TextFragment fragment) intfloatgetScore()voidmerge(TextFragment frag2) (package private) voidsetScore(float score) toString()
-
Field Details
-
markedUpText
CharSequence markedUpText -
fragNum
int fragNum -
textStartPos
int textStartPos -
textEndPos
int textEndPos -
score
float score
-
-
Constructor Details
-
TextFragment
-
-
Method Details
-
setScore
void setScore(float score) -
getScore
public float getScore() -
merge
- Parameters:
frag2- Fragment to be merged into this one
-
follows
- Returns:
- true if this fragment follows the one passed
-
getFragNum
public int getFragNum()- Returns:
- the fragment sequence number
-
toString
-