Highlighter.Net 2.0.0

Highlighter.GetBestFragment Method

Highlights chosen terms in a text, extracting the most relevant section. This is a convenience method that calls {@link #GetBestFragment(TokenStream, String)}

Overload List

Highlights chosen terms in a text, extracting the most relevant section. This is a convenience method that calls {@link #GetBestFragment(TokenStream, String)}

public string GetBestFragment(Analyzer,string,string);

Highlights chosen terms in a text, extracting the most relevant section. The document text is analysed in chunks to record hit statistics across the document. After accumulating stats, the fragment with the highest score is returned

public string GetBestFragment(TokenStream,string);

See Also

Highlighter Class | Lucene.Net.Highlight Namespace