title: Lucene- Extracting sentence in which word match occurs
body: <p>I'm a newbie to Lucene. In the course of understanding it, I could successfully index the files in a directory and I did a basic lucene search to get the list of files in which a particular word is present.</p>
  
  <p>Now I'm trying to extract the sentence from a file in which the search word is present. 
  I've searched a lot but couldn't figure out.</p>
  
  <p>Regards.</p>