title: Lucene - equivalent of SQL "IN" keyword
body: <p>Please excuse my novice question. I have tried searching for answers, but searching for this sort of thing is quite difficult given the keywords...</p>
  
  <p>I am using Lucene 5.2.x to index a set of documents and each document has two fields: <code>id</code> and <code>description</code>. </p>
  
  <p>I get a set of <code>ids</code> from previous query in the system. Now, I would like to get Lucene text search results on the <code>description</code> but only from documents in the set of <code>ids</code>. Were I doing this (naively) in MySQL, I might do something like:</p>
  
  <pre><code>SELECT * FROM mytable 
      WHERE description LIKE 'blah%' 
            AND 
            id IN (6345, 5759, 333, ...)
  </code></pre>
  
  <p>The set of <code>ids</code> maybe tens of thousands. What is the best approach to this with Lucene? Can I construct a Lucene query to handle this efficiently, or should I search my entire document index and then do a set intersection? Something else?</p>
  
  <p>Thank you!</p>