Grouping

Lucene supports grouping clauses to form sub-queries. 

Lucene supports using parentheses to group clauses to form sub-queries. This is useful for controlling the Boolean logic in a query.

Examples:
  • To search for records that contain either Beta1 or Beta2 and the number 7.1, use the following query:
    (Beta1 OR Beta2) AND 7.1
  • To search for records with a Headline field that contains both the term Beta1 and the phrase Beta2 test, use the following query:
    Headline:(+Beta1 +"Beta2 test")