Class DefaultHitHighlighterFactory

    • Constructor Detail

      • DefaultHitHighlighterFactory

        public DefaultHitHighlighterFactory​(org.apache.lucene.analysis.Analyzer analyzer)
    • Method Detail

      • create

        public HitHighlighter create​(String queryString)
        Description copied from interface: HitHighlighterFactory
        Create a new highlighter that uses the default formatter, and HTML encoding.

        The output format for hit highlights is: Lorem ipsum <span class="search-highlight>dolor</span> sit amet

        Specified by:
        create in interface HitHighlighterFactory