Hi,

I am pretty new to Lucene.
I have a requirement to search a text file with some keywords. After going though some articles in internet i found Lucene first indexes the file with the keywords and later the indexes are used to search the file.

Is it possible to extract the line in the text file where the keyword is found through Lucene api ?

Any help on this is highly appreciated. ( Code snippets / Online articles )

Thanks
Arvind