org.apache.solr.analysis
Class LegacyHTMLStripCharFilter
java.lang.Object
java.io.Reader
org.apache.lucene.analysis.CharFilter
org.apache.lucene.analysis.charfilter.BaseCharFilter
org.apache.solr.analysis.LegacyHTMLStripCharFilter
- All Implemented Interfaces:
- Closeable, Readable
Deprecated. use HTMLStripCharFilter
@Deprecated
public class LegacyHTMLStripCharFilter
- extends BaseCharFilter
This class is NOT recommended for new users and should be
considered UNSUPPORTED.
In Solr version 3.5 and earlier, HTMLStripCharFilter(Factory)
had known bugs in the offsets it provided, triggering e.g. exceptions in
highlighting.
This class is provided as possible alternative for people who depend on
the "broken" behavior of HTMLStripCharFilter in Solr version 3.5
and earlier, and/or who don't like the changes introduced by the Solr 3.6+
version of HTMLStripCharFilterFactory. (See the 3.6.0 release
section of solr/CHANGES.txt for a list of differences in behavior.)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_READ_AHEAD
public static final int DEFAULT_READ_AHEAD
- Deprecated.
- See Also:
- Constant Field Values
LegacyHTMLStripCharFilter
public LegacyHTMLStripCharFilter(Reader source)
- Deprecated.
LegacyHTMLStripCharFilter
public LegacyHTMLStripCharFilter(Reader source,
Set<String> escapedTags)
- Deprecated.
LegacyHTMLStripCharFilter
public LegacyHTMLStripCharFilter(Reader source,
Set<String> escapedTags,
int readAheadLimit)
- Deprecated.
main
public static void main(String[] args)
throws IOException
- Deprecated.
- Throws:
IOException
getReadAheadLimit
public int getReadAheadLimit()
- Deprecated.
read
public int read()
throws IOException
- Deprecated.
- Overrides:
read
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Deprecated.
- Specified by:
read
in class Reader
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.