merge of localization branch into HEAD. mh and zap
[mir.git] / scripts / createIndex.java
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());
+       }
+    }
+}