title: Search for many strings in a single document
body: <p>I have a list of 1M to 10M strings and I want to see which ones of them can be found in a single document (say 1 page of text).</p>
  
  <p>I know I can use Lucene (Solr/Elasticsearch) to find all documents containing a string. But this is the opposite.</p>
  
  <p>I could program some ad-hoc solution based on one of the string-searching algorithms such as <a href="https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm" rel="nofollow noreferrer">Aho-Corasic</a>, tries, etc., but I assume I would be reinventing the wheel. Is there any library/framework for this? </p>
  
  <p>(I am fine with splitting the strings and the documents into words, if it makes any difference)</p>