compiles into a standalone program that generates the intitial index directory
authorjohn <john>
Thu, 21 Nov 2002 21:03:01 +0000 (21:03 +0000)
committerjohn <john>
Thu, 21 Nov 2002 21:03:01 +0000 (21:03 +0000)
for lucene.
documentation forthcoming....

source/mir/misc/createIndex.java [new file with mode: 0755]

diff --git a/source/mir/misc/createIndex.java b/source/mir/misc/createIndex.java
new file mode 100755 (executable)
index 0000000..7af2ac7
--- /dev/null
@@ -0,0 +1,19 @@
+import org.apache.lucene.analysis.standard.StandardAnalyzer;
+import org.apache.lucene.index.IndexWriter;
+
+
+
+class createIndex{
+    public static void main(String[] args){
+       try{
+           
+       IndexWriter indexWriter = new IndexWriter(args[0], new StandardAnalyzer(), true);
+
+       indexWriter.close();
+       //and make it owned by correct user?(not in java!)
+       }
+       catch (Exception e){
+           System.out.println(e.toString());
+       }
+    }
+}