Chapter 1. Meet Lucene
Figure 1.1. Searching the internet with Google
Figure 1.2. Mac OS X Finder with its embedded search capability
Figure 1.3. Apple’s iTunes intuitively embeds search functionality.
Figure 1.4. Typical components of search application; the shaded components show which parts Lucene handles.
Figure 1.5. Classes used when indexing documents with Lucene
Chapter 2. Building a search index
Figure 2.1. Indexing with Lucene breaks down into three main operations: extracting text from source documents, analyzing it, and saving it to the index.
Figure 2.2. Segmented structure of a Lucene inverted index
Figure 2.3. A single IndexWriter can be shared by multiple threads.
Figure 2.4. An in-memory document buffer helps improve Lucene’s indexing performance.
Chapter 3. Adding search to your application
Figure 3.1. QueryParser translates a textual expression from the end user into an arbitrarily complex query for searching.
Figure 3.2. The relationship between the common classes used for searching
Figure 3.3. Lucene uses this formula to determine a document score based on a query.
Figure 3.4. Illustrating the PhraseQuery slop factor: “quick fox” requires a slop of 1 to match, whereas “fox quick” requires a slop of 3 to match.
Figure 3.5. Sloppy phrase scoring formula
Figure 3.6. FuzzyQuery distance formula