Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-477

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0.CR1
    • Component/s: analyzer
    • Labels:
      None

      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:

      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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                sanne Sanne Grinovero
                Reporter:
                gnalle Gustavo Fernandes
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: