title: Text Classification in Java
body: <p>I need some sort of solution in Java for the following requirements:</p>
  
  <ol>
  <li>Search in a text for certain terms (each term can be 1-3 words). For example: {"hello world", "hello"}. The match need to be exact. </li>
  <li>There are about 500 types of terms groups each contains about 30 terms.</li>
  <li>Each text might contain up to 4000 words.</li>
  </ol>
  
  <p>performance is an important issue.</p>
  
  <p>Thanks,
  Rod</p>