log4j implemented for the producer subsystem
[mir.git] / source / mir / misc / createIndex.java
index 7af2ac7..429352e 100755 (executable)
@@ -1,3 +1,5 @@
+package mir.misc;
+
 import org.apache.lucene.analysis.standard.StandardAnalyzer;
 import org.apache.lucene.index.IndexWriter;
 
@@ -5,15 +7,15 @@ import org.apache.lucene.index.IndexWriter;
 
 class createIndex{
     public static void main(String[] args){
-       try{
-           
-       IndexWriter indexWriter = new IndexWriter(args[0], new StandardAnalyzer(), true);
+        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());
-       }
+        indexWriter.close();
+        //and make it owned by correct user?(not in java!)
+        }
+        catch (Exception e){
+            System.out.println(e.toString());
+        }
     }
 }