concept setting in category lucene

appears as: settings, settings, Settings, setting
Lucene in Action, Second Edition

This is an excerpt from Manning's book Lucene in Action, Second Edition.

As of version 2.9, a number of classes now accept a parameter of type Version (from the org.apache.lucene.util package) during construction. This class defines enum constants, such as LUCENE_24 and LUCENE_29, referencing Lucene’s minor releases. When you pass one of these values, it instructs Lucene to match the settings and behavior of that particular release. Lucene will also emulate bugs present in that release and fixed in later releases, if the Lucene developers felt that fixing the bug would break backward compatibility of existing indexes. For each class that accepts a Version parameter, you’ll have to consult the Javadocs to see what settings and bugs are changed across versions. All examples in this book use LUCENE_30.

Let’s dig into the various parts of an algorithm file. This is a simple text file. Comments begin with the # character, and whitespace is generally not significant. Usually the settings, which bind global names to their values, appear at the top. Next comes the heart of the algorithm, which expresses the series of tasks to run, and in what order. Finally, there’s usually one or more reporting tasks at the very end to generate the final summary. Let’s look first at the settings.

Settings are lines that match this form:

name = value

where name is a known setting (the full list of settings is shown in tables C.1, C.2, and C.3). For example, compound = false tells the CreateIndex or OpenIndex task to create the IndexWriter with setUseCompoundFile set to false.