November 2005
Intermediate to advanced
304 pages
6h 14m
English
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 ...
Read now
Unlock full access