org.erowid.sperowider
Class Indexer
java.lang.Object
org.erowid.sperowider.Indexer
- public class Indexer
- extends Object
Even though it would be more efficient to do this as part of rectification,
I'm breaking this out so it can be run stand-alone.
- Version:
- $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/Indexer.java,v 1.21 2005/05/24 04:38:47 gurustu Exp $
- Author:
- Stu Statman
Constructor Summary |
Indexer(SperowiderContext context)
Creates a new Indexer, a class that creates a Lucene index for a tree of
already downloaded and rectified files. |
Method Summary |
void |
close()
Optimizes and closes the newly created Lucene index. |
void |
index(String filename)
Creates a new Document for the passed in file, and adds it to the index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Indexer
public Indexer(SperowiderContext context)
throws IOException
- Creates a new Indexer, a class that creates a Lucene index for a tree of
already downloaded and rectified files.
close
public void close()
- Optimizes and closes the newly created Lucene index.
index
public void index(String filename)
- Creates a new
Document
for the passed in file, and adds it to the index.