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:[email protected]] 
Gesendet: Montag, 23. Februar 2015 12:42
An: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to