public abstract class PassageFormatter extends Object
| Constructor and Description |
|---|
PassageFormatter() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
format(Passage[] passages,
String content)
Formats the top
passages from content
into a human-readable text snippet. |
public abstract Object format(Passage[] passages, String content)
passages from content
into a human-readable text snippet.passages - top-N passages for the field. Note these are sorted in
the order that they appear in the document for convenience.content - content for the field.UnifiedHighlighter that
return String, the toString method on the Object
returned by this method is used to compute the string.Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.