lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam <>
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",
it's must be wrong.

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message