Class MainIndex


  • public class MainIndex
    extends java.lang.Object
    • Constructor Detail

      • MainIndex

        public MainIndex​(SearchSettings settings)
                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • checkInitialized

        public boolean checkInitialized()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • printInitialized

        public java.lang.String printInitialized()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • index

        public void index()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • search

        public void search​(java.lang.String queryString,
                           SearchSettings settings,
                           java.io.PrintStream out)
                    throws java.io.IOException,
                           org.apache.lucene.queryparser.classic.ParseException
        Throws:
        java.io.IOException
        org.apache.lucene.queryparser.classic.ParseException
      • didYouMent

        public static void didYouMent​(java.lang.String queryString,
                                      Formatter f,
                                      int count,
                                      Vocabulary v)