Package org.apache.lucene.demo
Class IndexFiles
- java.lang.Object
- 
- org.apache.lucene.demo.IndexFiles
 
- 
- All Implemented Interfaces:
- AutoCloseable
 
 public class IndexFiles extends Object implements AutoCloseable Index all text files under a directory.This is a command-line application demonstrating simple Lucene indexing. Run it with no command-line arguments for usage information. 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static voidmain(String[] args)Index all text files under a directory.
 
- 
- 
- 
Method Detail- 
mainpublic static void main(String[] args) throws Exception Index all text files under a directory.- Throws:
- Exception
 
 - 
closepublic void close() throws IOException - Specified by:
- closein interface- AutoCloseable
- Throws:
- IOException
 
 
- 
 
-