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 TypeMethodDescriptionboolean
follows
(TextFragment fragment) int
float
getScore()
void
merge
(TextFragment frag2) (package private) void
setScore
(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
-