Package org.hibernate.search.query.dsl
Interface TermContext
-
- All Superinterfaces:
QueryCustomization<TermContext>
@Deprecated public interface TermContext extends QueryCustomization<TermContext>
Deprecated.See the deprecation note onQueryBuilder.- Author:
- Emmanuel Bernard
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description FuzzyContextfuzzy()Deprecated.Use a fuzzy search approximation (aka edit distance)TermMatchingContextonField(String field)Deprecated.TermMatchingContextonFields(String... field)Deprecated.WildcardContextwildcard()Deprecated.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 '*'.-
Methods inherited from interface org.hibernate.search.query.dsl.QueryCustomization
boostedTo, filteredBy, withConstantScore
-
-
-
-
Method Detail
-
onField
TermMatchingContext onField(String field)
Deprecated.- Parameters:
field- The field name the term query is executed on- Returns:
TermMatchingContextto continue the term query
-
onFields
TermMatchingContext onFields(String... field)
Deprecated.- Parameters:
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 viaQueryBuilder.bool()- Returns:
TermMatchingContextto continue the term query
-
fuzzy
FuzzyContext fuzzy()
Deprecated.Use a fuzzy search approximation (aka edit distance)- Returns:
FuzzyContextto continue the fuzzy query
-
wildcard
WildcardContext wildcard()
Deprecated.Treat the query as a wildcard query which means:- '?' represents any single character
- '*' represents any character sequence
- Returns:
WildcardContextto continue the wildcard query
-
-