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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextSimple
analyzer(String analyzer)
Set the analyzerTextSimple
analyzeWildcard(boolean analyzeWildcard)
Set to true to use analyze wildcard.TextSimple
fields(String... fields)
Set the fields.TextSimple
flags(String flags)
Set the flags.String
getAnalyzer()
Return the analyzer to use.String[]
getFields()
Return the fields.String
getFlags()
Return the flags.String
getLocale()
Return the locale.String
getMinShouldMatch()
Return the minimum should match.boolean
isAnalyzeWildcard()
Return true to analyse wildcard.boolean
isLenient()
Return lenient mode.boolean
isLowercaseExpandedTerms()
Return lowercase expanded terms mode.boolean
isOperatorAnd()
Return true if the default operator should be AND.TextSimple
lenient(boolean lenient)
Set the lenient mode.TextSimple
locale(String locale)
Set the locale.TextSimple
lowercaseExpandedTerms(boolean lowercaseExpandedTerms)
Set the false to not use lowercase expanded terms.TextSimple
minShouldMatch(String minShouldMatch)
Set the minimum should match.TextSimple
opAnd()
Use AND as the default operator.TextSimple
opOr()
Use OR as the default operator.
-
-
-
Constructor Detail
-
TextSimple
public TextSimple()
Construct
-
-
Method Detail
-
fields
public TextSimple fields(String... fields)
Set the fields.
-
opAnd
public TextSimple opAnd()
Use AND as the default operator.
-
opOr
public TextSimple opOr()
Use OR as the default operator.
-
analyzer
public TextSimple analyzer(String analyzer)
Set the analyzer
-
flags
public TextSimple flags(String flags)
Set the flags.
-
lowercaseExpandedTerms
public TextSimple lowercaseExpandedTerms(boolean lowercaseExpandedTerms)
Set the false to not use lowercase expanded terms.
-
analyzeWildcard
public TextSimple analyzeWildcard(boolean analyzeWildcard)
Set to true to use analyze wildcard.
-
locale
public TextSimple locale(String locale)
Set the locale.
-
lenient
public TextSimple lenient(boolean lenient)
Set the lenient mode.
-
minShouldMatch
public TextSimple minShouldMatch(String 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
public String getAnalyzer()
Return the analyzer to use.
-
getMinShouldMatch
public String getMinShouldMatch()
Return the minimum should match.
-
-