title: How to do an IN query in Solr?
body: <p>i'm having documents with a multivalued field "sharedTo" which contains the groups that the document is shared to. Now I want to find all documents that are shared to at least one of a list of given groups. E.g. I want to find all documents that are shared to the group "foo" or the group "bar" or both. Currently I'm building a query like this:</p>
  
  <pre><code>sharedTo:"foo" OR sharedTo:"bar"
  </code></pre>
  
  <p>For each group I just add a new OR query part. This works, however I wonder if there is a more efficient way of doing this like a</p>
  
  <pre><code>sharedTo IN ('foo', 'bar')
  </code></pre>