Re: Lucene Search Result with Line Numbers?

2005-04-11 Thread cerberus yao
But the "crash.java" is a just single document physically. Do we have any drawback if we treat each line in "crash.java" as a doucment? Another question: If we need to present the search result with the hit lines plus n lines forward and backword, how can I do this if each lines are seperated in

Lucene Search Result with Line Numbers?

2005-04-11 Thread cerberus yao
Hi, Lucene users: Does anyone knows how to add the Lucene search results with Line number in original source content? for example: I have a file "Test.java" which is indexed by lucene. When I search inside the index, how to enhance the search result with line number in Test.java?