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

org.hibernate.search.query.dsl.RangeMatchingContext 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;

/**
 * @author Emmanuel Bernard
 */
public interface RangeMatchingContext extends FieldCustomization {
	/**
	 * field / property the term query is executed on
	 */
	RangeMatchingContext andField(String field);

	//TODO what about numeric range query, I guess we can detect it automatically based on the field bridge
	//TODO get info on precisionStepDesc (index time info)
	//FIXME: Is  correct or should we specialize to String and Numeric (or all the numeric types?
	 FromRangeContext from(T from);

	public interface FromRangeContext {
		RangeTerminationExcludable to(T to);
		FromRangeContext excludeLimit();
	}

	/**
	 * The field value must be below below
	 * You can exclude the value below by calling .excludeLimit()
	 */
	RangeTerminationExcludable below(Object below);

	/**
	 * The field value must be above above
	 * You can exclude the value above by calling .excludeLimit()
	 */
	RangeTerminationExcludable above(Object above);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy