lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam <hairen...@yahoo.com.cn>
Subject Re: about some seacher(I'm new hand, thank you for help)
Date Tue, 10 Jul 2012 07:38:16 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message