a little toy java program for creating a lucene index.....will be vastly improved.
authorjohn <john>
Sat, 6 Jul 2002 19:24:12 +0000 (19:24 +0000)
committerjohn <john>
Sat, 6 Jul 2002 19:24:12 +0000 (19:24 +0000)
scripts/createIndex.java [new file with mode: 0755]

diff --git a/scripts/createIndex.java b/scripts/createIndex.java
new file mode 100755 (executable)
index 0000000..028865e
--- /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("/tmp/index/", new StandardAnalyzer(), true);
+
+       indexWriter.close();
+       //and make it owned by correct user?
+       }
+       catch (Exception e){
+           System.out.println(e.toString());
+       }
+    }
+}