lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Taylor <paul_t...@fastmail.fm>
Subject Why has PerFieldAnalyzerWrapper been made final in Lucene 3.1 ?
Date Tue, 03 May 2011 16:03:09 GMT
We subclassed  PerFieldAnalyzerWrapper as follows:

public class PerFieldEntityAnalyzer extends PerFieldAnalyzerWrapper {

     public PerFieldEntityAnalyzer(Class indexFieldClass) {
         super(new StandardUnaccentAnalyzer());

         for(Object o : EnumSet.allOf(indexFieldClass)) {
             IndexField indexField = (IndexField) o;
             Analyzer analyzer = indexField.getAnalyzer();
             if (analyzer != null) {
                 this.addAnalyzer(indexField.getName(), analyzer);
             }
         }
     }
}

but now we cant do this.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message