org.apache.lucene.search.highlight
public class TextFragment extends Object
| Constructor Summary | |
|---|---|
| TextFragment(StringBuffer markedUpText, int textStartPos, int fragNum) | |
| Method Summary | |
|---|---|
| boolean | follows(TextFragment fragment) |
| int | getFragNum() |
| float | getScore() |
| void | merge(TextFragment frag2) |
| String | toString() |
Parameters: fragment
Returns: true if this fragment follows the one passed
Returns: the fragment sequence number
Parameters: frag2 Fragment to be merged into this one