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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to