title: Keyword proximity matching - options?
body: <p>I have a case where I have an array of keywords.  I want to find their matches within a given string and return x number of words before and after each.</p>
  
  <p>I could write a looping engine that goes through an array of each, returning a given index, and performing concatenated sub-strings based on those loops, but this seems a bit lengthy.</p>
  
  <p>I've heard of Lucene, but not sure if implementing an entire framework to do this is worth it.  Also, if possible, how can I accomplish with Lucene?</p>
  
  <p>Thanks.</p>