java.lang.Object
io.ebean.search.TextSimple
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();
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet the analyzeranalyzeWildcard
(boolean analyzeWildcard) Set to true to use analyze wildcard.Set the fields.Set the flags.Return the analyzer to use.String[]
Return the fields.getFlags()
Return the flags.Return the locale.Return the minimum should match.boolean
Return true to analyse wildcard.boolean
Return lenient mode.boolean
Return lowercase expanded terms mode.boolean
Return true if the default operator should be AND.lenient
(boolean lenient) Set the lenient mode.Set the locale.lowercaseExpandedTerms
(boolean lowercaseExpandedTerms) Set the false to not use lowercase expanded terms.minShouldMatch
(String minShouldMatch) Set the minimum should match.opAnd()
Use AND as the default operator.opOr()
Use OR as the default operator.
-
Field Details
-
fields
-
operatorAnd
protected boolean operatorAnd -
analyzer
-
flags
-
lowercaseExpandedTerms
protected boolean lowercaseExpandedTerms -
analyzeWildcard
protected boolean analyzeWildcard -
locale
-
lenient
protected boolean lenient -
minShouldMatch
-
-
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
public boolean isLenient()Return lenient mode. -
isAnalyzeWildcard
public boolean isAnalyzeWildcard()Return true to analyse wildcard. -
isLowercaseExpandedTerms
public boolean isLowercaseExpandedTerms()Return lowercase expanded terms mode. -
isOperatorAnd
public boolean 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.
-