The two code examples in this article used a precompiled JAR file containing the Lucene libraries. When I develop applications with Lucene, I prefer to add the Lucene source code directly to my IntelliJ or Eclipse projects.
Lucene is fantastically useful. I hope that this article serves as a fun introduction that motivates you to spend a few hours learning how to integrate Lucene into your own projects.
The Lucene project Web site has a "sandbox" area with several useful sub-projects such as utilities for highlighting search words in retrieved text. Check it out.