public class IdxTreeOptimizer
extends Object
processDir()
method on a directory containing an index. Note that the directory passed
may also be a root directory with many index sub-directories if desired.| Constructor and Description |
|---|
IdxTreeOptimizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
optimizeIndex(File idxDirToOptimize)
Performs the actual work of optimizing a Lucene index.
|
void |
processDir(File dir)
Create an
IdxTreeOptimizer instance and call this method to
optimize one or more Lucene indices. |
public void processDir(File dir)
throws Exception
IdxTreeOptimizer instance and call this method to
optimize one or more Lucene indices. dir - The index database directory optimize. May be a
directory containing a single index, or the root
directory of a tree containing multiple indices.
Exception - Passes back any exceptions generated by the
optimizeIndex()
function, which is called for each index sub-directory
found. public void optimizeIndex(File idxDirToOptimize)
throws Exception
idxDirToOptimize - The index database directory clean. This
directory must contain a single Lucene index.
Exception - Passes back any exceptions generated by Lucene
during the opening or optimization of the
specified index.