Red Hat Web Application Framework 6.1: WAF Developer Guide | ||
---|---|---|
Prev | Chapter 4. WAF Component: Services | Next |
The search service provides APIs for indexing and searching content. Two search engines are supported by WAF: Oracle interMedia™ and Lucene. interMedia requires an Oracle database, while Lucene is an open-source, database-independent search engine (see http://jakarta.apache.org/lucene/ for more information).
Objects that should be indexed register themselves with a SearchableObserver, which indexes the object whenever the object is persisted. If you extend WAF with custom content types, making the custom content searchable is a simple matter of implementing com.arsdigita.lucene.Adapter.