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

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

    Methods in org.apache.lucene.search.highlight that throw InvalidTokenOffsetsException
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | Highlighter.`getBestFragment(org.apache.lucene.analysis.Analyzer analyzer, java.lang.String fieldName, java.lang.String text)` Highlights chosen terms in a text, extracting the most relevant section.
    `java.lang.String` | Highlighter.`getBestFragment(org.apache.lucene.analysis.TokenStream tokenStream, java.lang.String text)` Highlights chosen terms in a text, extracting the most relevant section.
    `java.lang.String[]` | Highlighter.`getBestFragments(org.apache.lucene.analysis.Analyzer analyzer, java.lang.String text, int maxNumFragments)` Deprecated. This method incorrectly hardcodes the choice of fieldname. Use the method of the same name that takes a fieldname.
    `java.lang.String[]` | Highlighter.`getBestFragments(org.apache.lucene.analysis.Analyzer analyzer, java.lang.String fieldName, java.lang.String text, int maxNumFragments)` Highlights chosen terms in a text, extracting the most relevant sections.
    `java.lang.String[]` | Highlighter.`getBestFragments(org.apache.lucene.analysis.TokenStream tokenStream, java.lang.String text, int maxNumFragments)` Highlights chosen terms in a text, extracting the most relevant sections.
    `java.lang.String` | Highlighter.`getBestFragments(org.apache.lucene.analysis.TokenStream tokenStream, java.lang.String text, int maxNumFragments, java.lang.String separator)` Highlights terms in the text , extracting the most relevant sections and concatenating the chosen fragments with a separator (typically "...").
    `TextFragment[]` | Highlighter.`getBestTextFragments(org.apache.lucene.analysis.TokenStream tokenStream, java.lang.String text, boolean mergeContiguousFragments, int maxNumFragments)` Low level api to get the most relevant (formatted) sections of the document.

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.