public class IdxTreeCuller
extends Object
cullIndex()
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 |
---|
IdxTreeCuller() |
Modifier and Type | Method and Description |
---|---|
void |
cullIndex(File xtfHome,
IndexInfo idxInfo,
File srcRootFile,
SubDirFilter subDirFilter)
Create an
IdxTreeCuller instance and call this method to
remove documents from indices when the associated source text no longer
exists. |
private void |
deleteIndex(File idxDirToCull) |
public void cullIndex(File xtfHome, IndexInfo idxInfo, File srcRootFile, SubDirFilter subDirFilter) throws Exception
IdxTreeCuller
instance and call this method to
remove documents from indices when the associated source text no longer
exists. xtfHome
- The base directory relative to which file paths
are interpreted.
idxInfo
- The index to cull.
subDirFilter
- Sub-directory limitation, or null for all.
Exception
- Passes back any exceptions generated by Lucene
during the opening of, reading of, or writing to
the specified index.
private void deleteIndex(File idxDirToCull) throws IOException
IOException