scripts/mir-setup/README: update with link to new doc on wiki
[mir.git] / scripts / createIndex.java
1 import org.apache.lucene.analysis.standard.StandardAnalyzer;
2 import org.apache.lucene.index.IndexWriter;
3
4
5
6 class createIndex{
7     public static void main(String[] args){
8         try{
9
10         IndexWriter indexWriter = new IndexWriter("/tmp/index/", new StandardAnalyzer(), true);
11
12         indexWriter.close();
13         //and make it owned by correct user?
14         }
15         catch (Exception e){
16             System.out.println(e.toString());
17         }
18     }
19 }