title: Lucene OR search using Boolean query
body: <p>I have an index with multiple fields, one of which is a string field in which I store category names for a product... such as "Electronics", "Home", "Garden", etc</p>
  
  <pre><code>new StringField("category_name", categoryName, Field.Store.YES)); //categoryName is a value such as "Electronics"
  </code></pre>
  
  <p>I am performing a Boolean query to find products by name, price, and category but I'm not sure how to do an OR search so that I can query for two categories at the same time.</p>
  
  <p>My current query looks like this:</p>
  
  <pre><code>String cat = "Electronics"
  TermQuery catQuery = new TermQuery(new Term("category_name", cat));
  bq.add(new BooleanClause(catQuery, BooleanClause.Occur.MUST)); // where "bq" is the boolean query I am adding to, I tried .SHOULD but that didn't help either
  </code></pre>
  
  <p>this works fine for a one category search, but I am not sure how to search "Electronics OR Home" which would be two categories.</p>