title: Finding relevant keyword from a webpage
body: <ul>
  <li>On a side I have a Java CMS providing a Set of keywords</li>
  <li>On the other side I have a JavaScript Bookmarklet to curate a Webpage</li>
  </ul>
  
  <p>Is there a clever way to cross/match my set of keywords with the webpage content ?</p>
  
  <p>John Resign explain <a href="http://ejohn.org/blog/revised-javascript-dictionary-search/" rel="nofollow noreferrer">in some articles</a> how to compress then search in a Dictionary terms but it seems really complicated.  </p>
  
  <p>In fact, I'm looking for a clever Java or JavaScript algorithm to match a Set of String in a text efficiently.</p>
  
  <p>My question is very close to this one:
  <a href="https://stackoverflow.com/questions/5664227/effective-search-on-a-small-text">Effective search on a small text</a></p>
  
  <p>But,</p>
  
  <ul>
  <li>I want to do it on 1 text instead of a database of texts </li>
  <li>Indexing with lucene works great but I don't know how to match efficiently indexed terms with all my keywords.</li>
  </ul>