| java.lang.Object org.apache.lucene.index.CheckIndex
CheckIndex | public class CheckIndex (Code) | | Basic tool to check the health of an index and write a
new segments file that removes reference to problematic
segments. There are many more checks that this tool
could do but does not yet, eg: reconstructing a segments
file by looking for all loadable segments (if no segments
file is found), removing specifically specified segments,
listing files that exist but are not referenced, etc.
|
Method Summary | |
public static boolean | check(Directory dir, boolean doFix) Returns true if index is clean, else false. | public static void | main(String[] args) |
check | public static boolean check(Directory dir, boolean doFix) throws IOException(Code) | | Returns true if index is clean, else false.
|
|
|