but,how can i used it in lucene
                        File logFile= new File("D:\\logFile"); 
                        BufferedReader reader=null;
                        String str = null;
                        reader = new BufferedReader(new FileReader(logFile));
                        while ((str=reader.readLine())!=null) {
                                String timestamp = str.substring(1, 13);
                                String content = str.substring(14).trim();
                        }
in  this way ,we can get the data,but
document.add(new Field("content",
content,Field.Store.YES,Field.Index.NOT_ANALYZED_NO_NORMS);
it's must be wrong.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/about-some-seacher-I-m-new-hand-thank-you-for-help-tp3993397p3994093.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to