Class HTMLStripCharFilter

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Readable

    public final class HTMLStripCharFilter
    extends org.apache.lucene.analysis.BaseCharFilter
    A CharFilter that wraps another Reader and attempts to strip out HTML constructs.
    • Constructor Detail

      • HTMLStripCharFilter

        public HTMLStripCharFilter​(org.apache.lucene.analysis.CharStream source)
        Parameters:
        source -
      • HTMLStripCharFilter

        public HTMLStripCharFilter​(org.apache.lucene.analysis.CharStream source,
                                   Set<String> escapedTags)
        Parameters:
        source -
        escapedTags - Tags in this set (both start and end tags) will not be filtered out.