Class LuceneUtils


  • public class LuceneUtils
    extends Object
    Some Lucene Utilities used in some of our tests.
    • Constructor Detail

      • LuceneUtils

        public LuceneUtils()
    • Method Detail

      • makeDummyIndex

        public static void makeDummyIndex​(File indexLocation)
                                   throws IOFailure
        Create Dummy Lucene index. uses an empty file as basis for the lucene-index.
        Parameters:
        indexLocation - location of index
        Throws:
        IOFailure
      • generateIndex

        public static void generateIndex​(File CrawlLog,
                                         BufferedReader cdxreader,
                                         File indexDir)
        Generate a Lucene index from a crawllog, and a CDXReader.
        Parameters:
        CrawlLog - some crawllog
        cdxreader - some CDXReader
        indexDir - Destinationdirector for the Lucene index.