Got this one sorted out. I was still referencing the 4.x lucene-analyzers.jar which required the reader ;) Sorry for the noise!
-----Ursprüngliche Nachricht----- Von: Clemens Wyss DEV [mailto:clemens...@mysign.ch] Gesendet: Montag, 23. Februar 2015 12:42 An: java-user@lucene.apache.org Betreff: Lucene 5 : createComponents without reader My custom Analyzer had the following (Lucene 4) impl of createComponents: protected TokenStreamComponents createComponents ( final String fieldName, final Reader reader ) { Tokenizer source = new KeywordTokenizer( reader ); TokenStream filter = new LowerCaseFilter( source ); return new TokenStreamComponents( source, filter ); } As of Lucene 5 the signature of createComponents was changed to: TokenStreamComponents createComponents ( String fieldName ) How do I get the "current" reader in Lucene 5? --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org