Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hibernate.search.query.dsl.v2
Interface BooleanJunction<T extends BooleanJunction>

All Superinterfaces:
  QueryCustomization<T>

All Known Subinterfaces:
  MustJunction

    public interface BooleanJunction<T extends BooleanJunction>

extends QueryCustomization<T>

Represents a boolean query that can contains one or more elements to join

Author:
  Emmanuel Bernard

Method Summary
`org.apache.lucene.search.Query` | `createQuery()` Return the lucene query representing the boolean operation
`MustJunction` | `must(org.apache.lucene.search.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(org.apache.lucene.search.Query query)` The boolean query results should match the subquery

Methods inherited from interface org.hibernate.search.query.dsl.v2.QueryCustomization
`boostedTo, constantScore, filter`

Method Detail

### should

    BooleanJunction should(org.apache.lucene.search.Query query)

  The boolean query results should match the subquery

### must

    MustJunction must(org.apache.lucene.search.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.

### createQuery

    org.apache.lucene.search.Query createQuery()

  Return the lucene query representing the boolean operation

  Specified by:
    `createQuery` in interface `QueryCustomization<T extends BooleanJunction>`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2010 Hibernate. All Rights Reserved.