public class IdxTreeCleaner
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 |
---|
IdxTreeCleaner() |
Modifier and Type | Method and Description |
---|---|
void |
cleanIndex(File idxDirToClean)
Performs the actual work of removing incomplete documents from an index.
|
void |
processDir(File dir)
Create an
IdxTreeCleaner instance and call this method to
remove "incomplete" documents from an index directory or a root
directory containing multiple indices. |
public void processDir(File dir) throws Exception
IdxTreeCleaner
instance and call this method to
remove "incomplete" documents from an index directory or a root
directory containing multiple indices.
dir
- The index database directory clean. 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
cleanIndex() function, which is called for
each index sub-directory found.
IdxTreeCleaner class description.
public void cleanIndex(File idxDirToClean) throws Exception
idxDirToClean
- The index database directory clean. This directory
must contain a single Lucene index.
Exception
- Passes back any exceptions generated by Lucene
during the opening of, reading of, or writing to
the specified index. IdxTreeCleaner
class description.