mirror of https://github.com/apache/lucene.git
- Applied a patch for bug 28030: http://issues.apache.org/bugzilla/show_bug.cgi?id=28030
(and made some small changes to it) PR: 28030 Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150266 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
948a61fa0b
commit
16146cbd32
|
@ -26,9 +26,14 @@ import java.util.Date;
|
|||
|
||||
class IndexFiles {
|
||||
public static void main(String[] args) throws IOException {
|
||||
try {
|
||||
Date start = new Date();
|
||||
String usage = "java " + IndexFiles.class + " <root_directory>";
|
||||
if (args.length == 0) {
|
||||
System.err.println("Usage: " + usage);
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
Date start = new Date();
|
||||
try {
|
||||
IndexWriter writer = new IndexWriter("index", new StandardAnalyzer(), true);
|
||||
indexDocs(writer, new File(args[0]));
|
||||
|
||||
|
|
Loading…
Reference in New Issue