Get Line number when doing a search??
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   nicolas_renaud
Posted On:   Thursday, June 9, 2005 04:18 AM

Hello,

I am new with Lucene, and I'm wondering if this is possible to get the line number of all the matches in a document, when doing a search. Actually, is this information stored in the index?

I have searched in several forums, but the best solution I have for now, is to treat each line as a single lucene document when indexing, and add a "linenumber" field? Is there any better solution??

Thanks,

Regards


--

Nicolas Renaud

About | Sitemap | Contact