Uses of Class org.apache.lucene.search.highlight.InvalidTokenOffsetsException (Lucene 10.5.0 highlighter API)
Description: use: package: org.apache.lucene.search.highlight, class: InvalidTokenOffsetsException

# Uses of Class
org.apache.lucene.search.highlight.InvalidTokenOffsetsException

Packages that use InvalidTokenOffsetsException
Package
Description
org.apache.lucene.search.highlight
Highlighting search terms.

- ## Uses of InvalidTokenOffsetsException in org.apache.lucene.search.highlight

  Methods in org.apache.lucene.search.highlight that throw InvalidTokenOffsetsException
  Modifier and Type
  Method
  Description
  `final String`
  Highlighter.`getBestFragment(Analyzer analyzer, String fieldName, String text)`
  Highlights chosen terms in a text, extracting the most relevant section.
  `final String`
  Highlighter.`getBestFragment(TokenStream tokenStream, String text)`
  Highlights chosen terms in a text, extracting the most relevant section.
  `final String[]`
  Highlighter.`getBestFragments(Analyzer analyzer, String fieldName, String text, int maxNumFragments)`
  Highlights chosen terms in a text, extracting the most relevant sections.
  `final String[]`
  Highlighter.`getBestFragments(TokenStream tokenStream, String text, int maxNumFragments)`
  Highlights chosen terms in a text, extracting the most relevant sections.
  `final String`
  Highlighter.`getBestFragments(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 "...").
  `final TextFragment[]`
  Highlighter.`getBestTextFragments(TokenStream tokenStream, String text, boolean mergeContiguousFragments, int maxNumFragments)`
  Low level api to get the most relevant (formatted) sections of the document.