public StructuredQueryDefinition andNot ( StructuredQueryDefinition positive , StructuredQueryDefinition negative ) { checkQuery ( positive ) ; checkQuery ( negative ) ; return new AndNotQuery ( positive , negative ) ; }
Defines an AND NOT query combining a positive and negative query . You can use an AND or OR query over a list of query definitions as the positive or negative query .