org.hibernate.search.query.dsl.TermContext 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 TermContext extends QueryCustomization {
/**
* @param field The field name the term query is executed on
*
* @return {@code TermMatchingContext} to continue the term query
*/
TermMatchingContext onField(String field);
/**
* @param field The field names the term query is executed on. The underlying properties for the specified
* fields need to be of the same type. For example, it is not possible to use this method with a mixture of
* string and date properties. In the mixed case an alternative is to build multiple term queries and combine them
* via {@link org.hibernate.search.query.dsl.QueryBuilder#bool()}
* @return {@code TermMatchingContext} to continue the term query
*/
TermMatchingContext onFields(String... field);
/**
* Use a fuzzy search approximation (aka edit distance)
*
* @return {@code FuzzyContext} to continue the fuzzy query
*/
FuzzyContext fuzzy();
/**
* Treat the query as a wildcard query which means:
*
* - '?' represents any single character
* - '*' represents any character sequence
*
* For faster results, it is recommended that the query text does not
* start with '?' or '*'.
*
* @return {@code WildcardContext} to continue the wildcard query
*/
WildcardContext wildcard();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy