Source code used in http://www.lucenetutorial.com