How to use OR in a search query

I know how to use AND, when creating a string query of search terms. It would look like this: q=term1+term2+term3. This will find pages that include all of the terms.

But how do you use OR?

I’ve tried this: q=term1 OR term2 OR term3, but it doesn’t work.