org.hibernate.search.query.dsl

## Interface MustJunction

- All Superinterfaces:
    BooleanJunction<MustJunction>, QueryCustomization<MustJunction>, Termination

      public interface MustJunction
      extends BooleanJunction<MustJunction>

  Represents the context in which a must clause is described.
  Author:
    Emmanuel Bernard, Sanne Grinovero

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `BooleanJunction` | `disableScoring()` Disables scoring on the subquery.
    `BooleanJunction` | `not()` Negate the must clause.

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

      `isEmpty, must, should`

    - ### 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

    - #### not

          BooleanJunction not()

      Negate the must clause. Results of the boolean query do NOT match the subquery. A negated must clause always disables scoring on the subquery.
      Returns:
        the same `BooleanJunction` for method chaining.

    - #### disableScoring

          BooleanJunction disableScoring()

      Disables scoring on the subquery. If you are only interested to use this clause as a filtering criteria and don't need it to affect result scoring, this might improve performance.
      Returns:
        the same `BooleanJunction` for method chaining.

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