Apache-licensed Java code for using Solr and OpenNLP is at
https://github.com/tamingtext/book Taming Text, by Grant Ingersoll, Thomas Morton and Drew Farris is designed to teach software engineers the basic concepts of working with text to solve search and Natural Language Processing problems. The book focuses on teaching using existing open source libraries like Apache Solr, Apache Mahout and Apache OpenNLP to manipulate text. To learn more, visit http://www.manning.com/ingersoll.