org.apache.solr.analysis
Class LegacyHTMLStripCharFilterFactory

java.lang.Object
  extended by org.apache.lucene.analysis.util.AbstractAnalysisFactory
      extended by org.apache.lucene.analysis.util.CharFilterFactory
          extended by org.apache.solr.analysis.LegacyHTMLStripCharFilterFactory

Deprecated. use HTMLStripCharFilterFactory

@Deprecated
public class LegacyHTMLStripCharFilterFactory
extends CharFilterFactory

Factory for LegacyHTMLStripCharFilter.

 <fieldType name="text_html_legacy" class="solr.TextField" positionIncrementGap="100">
   <analyzer>
     <charFilter class="solr.LegacyHTMLStripCharFilterFactory"/>
     <tokenizer class="solr.WhitespaceTokenizerFactory"/>
   </analyzer>
 </fieldType>
 

This factory 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 lucene/CHANGES.txt for a list of differences in behavior.)


Field Summary
 
Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
 
Constructor Summary
LegacyHTMLStripCharFilterFactory(Map<String,String> args)
          Deprecated. Creates a new LegacyHTMLStripCharFilterFactory
 
Method Summary
 LegacyHTMLStripCharFilter create(Reader input)
          Deprecated.  
 
Methods inherited from class org.apache.lucene.analysis.util.CharFilterFactory
availableCharFilters, forName, lookupClass, reloadCharFilters
 
Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
assureMatchVersion, get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitFileNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyHTMLStripCharFilterFactory

public LegacyHTMLStripCharFilterFactory(Map<String,String> args)
Deprecated. 
Creates a new LegacyHTMLStripCharFilterFactory

Method Detail

create

public LegacyHTMLStripCharFilter create(Reader input)
Deprecated. 
Specified by:
create in class CharFilterFactory


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