Java org.apache.lucene.search.highlight Highlighter fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.search.highlight Highlighter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.search.highlight Highlighter.

The text is from its open source code.

Subclass

org.apache.lucene.search.highlight.Highlighter has subclasses.
Click this link to see all its subclasses.

Implementation

org.apache.lucene.search.highlight.Highlighter has the following implementations.
Click this link to see all its implementation.

Field

Constructor

Method

StringgetBestFragment(TokenStream tokenStream, String text)
Highlights chosen terms in a text, extracting the most relevant section.
StringgetBestFragment(Analyzer analyzer, String fieldName, String text)
Highlights chosen terms in a text, extracting the most relevant section.
String[]getBestFragments(Analyzer analyzer, String fieldName, String text, int maxNumFragments)
Highlights chosen terms in a text, extracting the most relevant sections.
StringgetBestFragments(TokenStream tokenStream, String text, int maxNumFragments, String separator)
Highlights terms in the text , extracting the most relevant sections and concatenating the chosen fragments with a separator (typically "...").
String[]getBestFragments(TokenStream tokenStream, String text, int maxNumFragments)
Highlights chosen terms in a text, extracting the most relevant sections.
TextFragment[]getBestTextFragments(TokenStream tokenStream, String text, boolean mergeContiguousFragments, int maxNumFragments)
Low level api to get the most relevant (formatted) sections of the document.
ScorergetFragmentScorer()
intgetMaxDocCharsToAnalyze()
FragmentergetTextFragmenter()
voidsetEncoder(Encoder encoder)
voidsetMaxDocCharsToAnalyze(int maxDocCharsToAnalyze)
voidsetTextFragmenter(Fragmenter fragmenter)