We're updating the issue view to help you get more done. 

Support for the new Solr's character filters (Gustavo Fernandes)

Description

Solr 1.4 introduced CharacterFilters [1], which are based on Lucene's CharStream. Those filters are currently incompatible with the annotation @TokenFilterDef, which accept only TokenFilterFactories:

1 2 3 public @interface TokenFilterDef { public abstract Class<? extends TokenFilterFactory> factory(); public abstract Parameter[] params() default { };

Onde ideia is to keep the same annotation, "generalize" the token filter factory type in the annotation, and on SolrAnalyzerBuilder construct a TokenizerChain which will accept both type of filters [2]

[1] http://lucene.apache.org/solr/api/org/apache/solr/analysis/CharFilterFactory.html
[2] http://lucene.apache.org/solr/api/org/apache/solr/analysis/TokenizerChain.html

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Gustavo Fernandes

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Minor