public abstract class PassageFormatter
extends java.lang.Object
| Constructor and Description |
|---|
PassageFormatter() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
format(Passage[] passages,
java.lang.String content)
Formats the top
passages from content
into a human-readable text snippet. |
public abstract java.lang.Object format(Passage[] passages, java.lang.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–2025 The Apache Software Foundation. All rights reserved.