Lucene: how to assign and/or search
I want to search two queries at the same time, such as "macbook pro" and "iphone", and the default field to search is "title", so the query is :(title: macbook pro title:iphone). I want to use "and" operation within each query, e.g. (+title:macbook +title:pro), and "or" operation between querys,i.e.   
((+title:macbook +title:pro) (title:iphone)). However, after using QueryParser to parse this query(title: macbook pro title:iphone), the result will be :(title: macbook title:pro title:iphone), if I set the default operator of parser is QueryParser.AND_OPERATOR, then the query will be (+title:macbook +title:pro +title:iphone). Neither is I need. What can I do to get the right query?((+title:macbook +title:pro) (title:iphone))
Lucene: how to assign and/or search
===

I want to search two queries at the same time, such as "macbook pro" and "iphone", and the default field to search is "title", so the query is :(title: macbook pro title:iphone). I want to use "and" operation within each query, e.g. (+title:macbook +title:pro), and "or" operation between querys,i.e.   
((+title:macbook +title:pro) (title:iphone)). However, after using QueryParser to parse this query(title: macbook pro title:iphone), the result will be :(title: macbook title:pro title:iphone), if I set the default operator of parser is QueryParser.AND_OPERATOR, then the query will be (+title:macbook +title:pro +title:iphone). Neither is I need. What can I do to get the right query?((+title:macbook +title:pro) (title:iphone))