Class DefaultPassageFormatter
Creates a formatted snippet from the top passages.
The default implementation marks the query terms as bold, and places ellipses between unconnected passages.
Assembly: Lucene.Net.ICU.dll
Syntax
public class DefaultPassageFormatter : PassageFormatter
Constructors
Name | Description |
---|---|
DefaultPassageFormatter() | Creates a new DefaultPassageFormatter with the default tags. |
DefaultPassageFormatter(String, String, String, Boolean) | Creates a new DefaultPassageFormatter with custom tags. |
Fields
Name | Description |
---|---|
m_ellipsis | text that will appear between two unconnected passages |
m_escape | true if we should escape for html |
m_postTag | text that will appear after highlighted terms |
m_preTag | text that will appear before highlighted terms |
Methods
Name | Description |
---|---|
Append(StringBuilder, String, Int32, Int32) | Appends original text to the response. |
Format(Passage[], String) |