Package io.ebean.search
Class TextSimple
java.lang.Object
io.ebean.search.TextSimple
public class TextSimple extends Object
Simple text query options.
This maps to an ElasticSearch "simple text query".
TextSimple options = new TextSimple()
.analyzeWildcard(true)
.fields("name")
.lenient(true)
.opAnd();
List<Customer> customers = database.find(Customer.class)
.text()
.textSimple("quick brown", options)
.findList();
-
Constructor Summary
Constructors Constructor Description TextSimple()Construct -
Method Summary
Modifier and Type Method Description TextSimpleanalyzer(String analyzer)Set the analyzerTextSimpleanalyzeWildcard(boolean analyzeWildcard)Set to true to use analyze wildcard.TextSimplefields(String... fields)Set the fields.TextSimpleflags(String flags)Set the flags.StringgetAnalyzer()Return the analyzer to use.String[]getFields()Return the fields.StringgetFlags()Return the flags.StringgetLocale()Return the locale.StringgetMinShouldMatch()Return the minimum should match.booleanisAnalyzeWildcard()Return true to analyse wildcard.booleanisLenient()Return lenient mode.booleanisLowercaseExpandedTerms()Return lowercase expanded terms mode.booleanisOperatorAnd()Return true if the default operator should be AND.TextSimplelenient(boolean lenient)Set the lenient mode.TextSimplelocale(String locale)Set the locale.TextSimplelowercaseExpandedTerms(boolean lowercaseExpandedTerms)Set the false to not use lowercase expanded terms.TextSimpleminShouldMatch(String minShouldMatch)Set the minimum should match.TextSimpleopAnd()Use AND as the default operator.TextSimpleopOr()Use OR as the default operator.
-
Constructor Details
-
TextSimple
public TextSimple()Construct
-
-
Method Details
-
fields
Set the fields. -
opAnd
Use AND as the default operator. -
opOr
Use OR as the default operator. -
analyzer
Set the analyzer -
flags
Set the flags. -
lowercaseExpandedTerms
Set the false to not use lowercase expanded terms. -
analyzeWildcard
Set to true to use analyze wildcard. -
locale
Set the locale. -
lenient
Set the lenient mode. -
minShouldMatch
Set the minimum should match. -
isLenient
Return lenient mode. -
isAnalyzeWildcard
Return true to analyse wildcard. -
isLowercaseExpandedTerms
Return lowercase expanded terms mode. -
isOperatorAnd
Return true if the default operator should be AND. -
getAnalyzer
Return the analyzer to use. -
getFields
Return the fields. -
getLocale
Return the locale. -
getFlags
Return the flags. -
getMinShouldMatch
Return the minimum should match.
-