tool.lucene

Class Index

public class Index extends Object

Command-line interface to indexing Lucene search engine, as a demonstration of how to use ExtractText. Assumes that the Lucene JAR is in the CLASSPATH.

To update a document, you first have to delete it and then add it again. Unfortunately you can't do this simultaneously, as according to jGuru FAQ, you cannot have both an IndexReader doing deletes and IndexWriter adding at the same time.

Version: $Revision: 1.7 $ $Date: 2003/08/28 20:31:26 $

See Also: Search

Field Summary
static StringUSAGE
static StringVERSION
Constructor Summary
Index(File index)
Method Summary
voidcheckLock(boolean fforce)
voidclose()
IndexWritergetIndexWriter()
static voidmain(String[] argv)

Field Detail

USAGE

public static final String USAGE

VERSION

public static final String VERSION

Constructor Detail

Index

public Index(File index)

Method Detail

checkLock

public void checkLock(boolean fforce)

close

public void close()

getIndexWriter

public IndexWriter getIndexWriter()

main

public static void main(String[] argv)