public class TextSimple extends Object
This maps to an ElasticSearch "simple text query".
TextSimple options = new TextSimple()
.analyzeWildcard(true)
.fields("name")
.lenient(true)
.opAnd();
List<Customer> customers = server.find(Customer.class)
.text()
.textSimple("quick brown", options)
.findList();
Constructor and Description |
---|
TextSimple()
Construct
|
Modifier and Type | Method and Description |
---|---|
TextSimple |
analyzer(String analyzer)
Set the analyzer
|
TextSimple |
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.
|
public TextSimple()
public TextSimple fields(String... fields)
public TextSimple opAnd()
public TextSimple opOr()
public TextSimple analyzer(String analyzer)
public TextSimple flags(String flags)
public TextSimple lowercaseExpandedTerms(boolean lowercaseExpandedTerms)
public TextSimple analyzeWildcard(boolean analyzeWildcard)
public TextSimple locale(String locale)
public TextSimple lenient(boolean lenient)
public TextSimple minShouldMatch(String minShouldMatch)
public boolean isLenient()
public boolean isAnalyzeWildcard()
public boolean isLowercaseExpandedTerms()
public boolean isOperatorAnd()
public String getAnalyzer()
public String getMinShouldMatch()
Copyright © 2019. All rights reserved.