Chapter 3. Indexing Your Data

We will cover the following topics in this chapter:

  • Obtaining an IndexWriter
  • Creating a StringField
  • Creating a TextField
  • Creating a numeric field
  • Creating a DocValue field
  • Transactional commits and index versioning
  • Reusing field and document objects per thread
  • Delving into field norms
  • Changing similarity implementation used during indexing

Introduction

An index in a search engine can make or break an application. A well-tuned index with a well-thought out indexing process will not only reduce future maintenance cost, but will also reduce any potentially expensive application failures due to corruption in the data and/or a break down in the data processing pipeline. We will dive into the indexing process more in this chapter ...

Get Lucene 4 Cookbook 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.