Documentation of 'org.apache.lucene.index.CheckIndex' Java class
CheckIndex
org.apache.lucene.index

Class CheckIndex



  • public class CheckIndex
    extends java.lang.Object
    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.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.io.PrintStream out 
    • Constructor Summary

      Constructors 
      Constructor and Description
      CheckIndex() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static boolean check(Directory dir, boolean doFix)
      Returns true if index is clean, else false.
      static void main(java.lang.String[] args) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • out

        public static java.io.PrintStream out
    • Constructor Detail

      • CheckIndex

        public CheckIndex()
    • Method Detail

      • check

        public static boolean check(Directory dir,
                                    boolean doFix)
                             throws java.io.IOException
        Returns true if index is clean, else false.
        Throws:
        java.io.IOException
      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Throwable
        Throws:
        java.lang.Throwable

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.