org.hibernate.search.query.dsl.RangeMatchingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Core of the Object/Lucene mapper, query engine and index management
/*
* 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
* @param field the name of the field
* @return the {@link RangeMatchingContext}
*/
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()
* @param below the lower limit of the range
* @return a {@link RangeTerminationExcludable}
*/
RangeTerminationExcludable below(Object below);
/**
* The field value must be above above
* You can exclude the value above
by calling .excludeLimit()
* @param above the upper limit of the range
* @return a {@link RangeTerminationExcludable}
*/
RangeTerminationExcludable above(Object above);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy