title: MongoDB - Logical OR when searching for words and phrases using full text search
body: <p>I asked a related question previously, and as suggested by the poster there have created this new question as a follow up:</p>
  
  <p><a href="https://stackoverflow.com/questions/28368883/mongodb-full-text-search-matching-words-and-exact-phrases/28372272">MongoDB full text search - matching words and exact phrases</a></p>
  
  <p>I was having some problems with unexpected results when using the full text search functionality in MongoDB, specifically when searching for a mixture of words and phrases.</p>
  
  <p>Using this helpful example provided by the poster in the previous question...</p>
  
  <pre><code>&gt; db.test.drop()
  &gt; db.test.insert({ "t" : "I'm on time, not late or delayed" })
  &gt; db.test.insert({ "t" : "I'm either late or delayed" })
  &gt; db.test.insert({ "t" : "Time flies like a banana" })
  &gt; db.test.ensureIndex({ "t" : "text" })
  
  &gt; db.test.find({ "$text" : { "$search" : "time late delay" } }, { "_id" : 0 })
  { "t" : "I'm on time, not late or delayed" }
  { "t" : "Time flies like a banana" }
  { "t" : "I'm either late or delayed" }
  
  &gt; db.test.find({ "$text" : { "$search" : "late delay" } }, { "_id" : 0 })
  { "t" : "I'm on time, not late or delayed" }
  { "t" : "I'm either late or delayed" }
  
  &gt; db.test.find({ "$text" : { "$search" : "late delay \"on time\"" } }, { "_id" : 0 })
  { "t" : "I'm on time, not late or delayed" }
  </code></pre>
  
  <p>The first two queries behave as I would expect, the first searching for "time OR late OR delay" and the second for "late OR delay".</p>
  
  <p>I now understand from reading this section of the documentation <a href="http://docs.mongodb.org/manual/reference/operator/query/text/#phrases" rel="nofollow noreferrer">http://docs.mongodb.org/manual/reference/operator/query/text/#phrases</a> that the third query, which includes a phrase will search for "late OR delay AND ("on time")".</p>
  
  <p>My question is, is it possible to search for "late OR delay OR ("on time")" in one text query?</p>