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

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

There is a newer version: 9.1.7.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;

/**
 * @author Emmanuel Bernard
 */
public interface PhraseContext extends QueryCustomization {
	/**
	 * Sets the number of other words permitted between words in query phrase.
	 * If zero, then this is an exact phrase search.  For larger values this works
	 * like a WITHIN or NEAR operator.
	 *
	 * Defaults to 0
	 */
	PhraseContext withSlop(int slop);

	/**
	 * field / property the term query is executed on
	 */
	PhraseMatchingContext onField(String fieldName);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy