What's Lou Seen? Searching with Lucene

Most large websites have a search capability of some kind. You can add sophisticated search functions to your own applications, using a powerful API called Lucene. This is an open-source API from Apache's Jakarta project that can automatically index documents and process search queries. Besides keyword searches, Lucene can do fuzzy searches based on word similarity. It also handles logical connectives such as OR and AND within searches and is capable of handling many types of documents besides HTML. To index documents, you can use the IndexWriter class in the org.apache.lucene.index package. This example ...

Get Wicked Cool Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.