org.pdfbox.searchengine.lucene
Class IndexFiles
java.lang.Object
org.pdfbox.searchengine.lucene.IndexFiles
- public class IndexFiles
- extends Object
This is a class that will index some files on a local filesystem. This code
was modified from a demo that comes with the lucene search engine.
- Version:
- $Revision: 1.8 $
- Author:
- Lucene team, Ben Litchfield
Method Summary |
void |
index(File root,
boolean create,
String index)
This will index a directory. |
static void |
main(String[] argv)
This is the main entry point for the indexer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexFiles
public IndexFiles()
main
public static void main(String[] argv)
- This is the main entry point for the indexer.
- Parameters:
argv
- The command line arguments.
index
public void index(File root,
boolean create,
String index)
- This will index a directory.
- Parameters:
root
- The root directory to start indexing.create
- Should we create a new index?index
- The name of the index.