public class PassageFormatter extends Object
The default implementation marks the query terms as bold, and places ellipses between unconnected passages.
|Constructor and Description|
Creates a new PassageFormatter with the default tags.
Creates a new PassageFormatter with custom tags.
|Modifier and Type||Method and Description|
Formats the top
preTag- text which should appear before a highlighted term.
postTag- text which should appear after a highlighted term.
ellipsis- text which should be used to connect two unconnected passages.
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.
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.