> I'm talking about the analyzers we provide in lucene itself. > there is no reason, no advantage towards these being .java code: it > just causes problems.
I see little difference between public class StockAnalyzers { public static final Analyzer STANDARD_30 = new AnalyzerBuilder(). add(new WhiteSpaceTokenizer(LUCENE_30)). build(); } and <stock-analyzers> <analyzer name = "Standard_30"> <tokenizer class = "lucene.WhiteSpaceTokenizer"> <param name = "version" value = "3.0" /> </tokenizer> </analyzer> </stock-analyzers> except latter is more verbose and former is more easily understandable, copypaste-and-tweakable and refactorable There's no reason, no advantage towards using .xml files for configuration, when said configuration can easily be expressed programmatically. It just causes problems :) -- Kirill Zakharenko/Кирилл Захаренко (ear...@gmail.com) Phone: +7 (495) 683-567-4 ICQ: 104465785 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org