CYKLO-927 Change version to 4.0.0 and watch the world burn.
CYKLO-927 Add lucene-analyzers-common dependency. StandardAnalyzer was moved there.
CYKLO-927 Use DirectoryReader to open index and get IndexReader
CYKLO-927 Fix creation of IndexWriter, use IndexWriterConfig which contains configuration for this IndexWriter. IW no longer has field length limit.
CYKLO-927 Bump version
CYKLO-927 In 4.0.0 Searcher is absorbed by IndexSearcher.
CYKLO-927 TermAttribute has been replaced by CharTermAttribute.
CYKLO-927 Fix getAllTerms method.
CYKLO-927 Extract method to getWriter.
CYKLO-927 Fix startUpdate method.
CYKLO-927 IndexWriter#optimize was removed in 3.5. Still functionality exists as IndexWriter#forceMerge method but it is not recommended to call it after each update. There could be some job which triggers forceMerge once a day.

More information about IndexWriter#optimize and why it should not be used can be found here http://www.searchworkings.org/blog/-/blogs/simon-says%3A-optimize-is-bad-for-you
CYKLO-927 Create new reader after update.
CYKLO-927 Change access to protected.
CYKLO-927 Add lucene-queryparser dependency so that QueryParser is available.
CYKLO-927 Use CharTermAttribute instead of TermAttribute. Fix copying buffer.
CYKLO-927 Add SuppressWarnings
CYKLO-927 Introduce LUCENE_VERSION constant so that code is DRY.
CYKLO-927 Add SUPPLEMENTARY.flex-macro copied form lucene 4.0.0 sources.
CYKLO-927 Bump maven-jflex-plugin version to 1.5.0-SNAPSHOT. This must be build from sources and installed into local repository.

Sources available at:
svn co https://jflex.svn.sourceforge.net/svnroot/jflex jflex
CYKLO-927 Rewrite TextAnalyzer. Copy StandardAnalyzer and make it work with TextTokenizer. Add Stemmer support just like in old TextAnalyzer. Null if not used.