org.hibernate.search.query.dsl

## Interface BooleanJunction<T extends BooleanJunction>

- All Superinterfaces:
    QueryCustomization<T>, Termination
  All Known Subinterfaces:
    MustJunction

      public interface BooleanJunction<T extends BooleanJunction>
      extends QueryCustomization<T>, Termination

  Represents a boolean query that can contains one or more elements to join
  Author:
    Emmanuel Bernard

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isEmpty()`
    `MustJunction` | `must(Query query)` The boolean query results must (or must not) match the subquery Call the .not() method to ensure results of the boolean query do NOT match the subquery.
    `BooleanJunction` | `should(Query query)` The boolean query results should match the subquery

    - ### Methods inherited from interface org.hibernate.search.query.dsl.QueryCustomization

      `boostedTo, filteredBy, withConstantScore`

    - ### Methods inherited from interface org.hibernate.search.query.dsl.Termination

      `createQuery`

- - ### Method Detail

    - #### should

          BooleanJunction should(Query query)

      The boolean query results should match the subquery
      Parameters:
        `query` - the query to match (nulls are ignored)
      Returns:
        a `BooleanJunction`

    - #### must

          MustJunction must(Query query)

      The boolean query results must (or must not) match the subquery Call the .not() method to ensure results of the boolean query do NOT match the subquery.
      Parameters:
        `query` - the query to match (nulls are ignored)
      Returns:
        a `MustJunction`

    - #### isEmpty

          boolean isEmpty()

      Returns:
        true if no restrictions have been applied

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved