public abstract class PassageFormatter extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Formats the top
public abstract Object format(Passage passages, String content)
contentinto 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.
PostingsHighlighterthat return String, the toString method on the Object returned by this method is used to compute the string.
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.