All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.query.dsl.MustJunction Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * Hibernate Search, full-text search for your domain model
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or .
 */

package org.hibernate.search.query.dsl;

/**
 * Represents the context in which a must clause is described.
 *
 * @author Emmanuel Bernard
 * @author Sanne Grinovero
 */
public interface MustJunction extends BooleanJunction {
	/**
	 * Negate the must clause.
	 * Results of the boolean query do NOT match the subquery.
	 * A negated must clause always disables scoring on the subquery.
	 *
	 * @return the same {@link BooleanJunction} for method chaining.
	 */
	BooleanJunction not();

	/**
	 * 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.
	 * @return the same {@link BooleanJunction} for method chaining.
	 */
	BooleanJunction disableScoring();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy