Class LuceneUtils
- java.lang.Object
-
- dk.netarkivet.harvester.indexserver.LuceneUtils
-
public class LuceneUtils extends Object
Some Lucene Utilities used in some of our tests.
-
-
Constructor Summary
Constructors Constructor Description LuceneUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
generateIndex(File CrawlLog, BufferedReader cdxreader, File indexDir)
Generate a Lucene index from a crawllog, and a CDXReader.static void
makeDummyIndex(File indexLocation)
Create Dummy Lucene index.
-
-
-
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 crawllogcdxreader
- some CDXReaderindexDir
- Destinationdirector for the Lucene index.
-
-