public interface MarkCollector
ContextMarker
.
Created: Dec 14, 2004
Modifier and Type | Method and Description |
---|---|
void |
beginContext(MarkPos pos,
Span span)
If context marking is enabled, this is called to mark the start of the
context surrounding a hit.
|
void |
beginField(MarkPos pos)
Marks the position of the very start of the field.
|
void |
beginSpan(MarkPos pos,
Span span)
Marks the beginning of a hit.
|
void |
endContext(MarkPos pos)
If context marking is enabled, this is called to mark the end of the
context surrounding a hit.
|
void |
endField(MarkPos pos)
Marks the very end of the field.
|
void |
endSpan(MarkPos pos)
Marks the end of a hit.
|
void |
term(MarkPos startPos,
MarkPos endPos,
String term)
Marks the start and end of a search term.
|
void beginField(MarkPos pos)
void term(MarkPos startPos, MarkPos endPos, String term)
startPos
- start characterendPos
- end characterterm
- term text as found in the indexvoid beginContext(MarkPos pos, Span span)
beginSpan()
, one or more calls to
term()
, then a call to
endSpan()
, and finally a call to
endContext()
.pos
- starting position for contextspan
- the hit for which context is being markedvoid beginSpan(MarkPos pos, Span span)
beginContext()
/
endContext()
pair. It will be followed by one or more calls to
term()
, then a call to
endSpan()
.void endSpan(MarkPos pos)
beginSpan()
.void endContext(MarkPos pos)
beginContext()
.void endField(MarkPos pos)