org.hibernate.search.query.dsl
public interface TermContext extends QueryCustomization<TermContext>
| Modifier and Type | Method and Description |
|---|---|
FuzzyContext |
fuzzy()
Use a fuzzy search approximation (aka edit distance)
|
TermMatchingContext |
onField(String field) |
TermMatchingContext |
onFields(String... field) |
WildcardContext |
wildcard()
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 '*'.
|
boostedTo, filteredBy, withConstantScoreTermMatchingContext onField(String field)
field - The field name the term query is executed onTermMatchingContext to continue the term queryTermMatchingContext onFields(String... field)
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 QueryBuilder.bool()TermMatchingContext to continue the term queryFuzzyContext fuzzy()
FuzzyContext to continue the fuzzy queryWildcardContext wildcard()
WildcardContext to continue the wildcard queryCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved