public class RegexpQueryBuilder extends MultiTermQueryBuilder implements BoostableQueryBuilder<RegexpQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
RegexpQueryBuilder(String name,
String regexp)
Constructs a new term query.
|
| Modifier and Type | Method and Description |
|---|---|
RegexpQueryBuilder |
boost(float boost)
Sets the boost for this query.
|
void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
RegexpQueryBuilder |
flags(RegexpFlag... flags) |
RegexpQueryBuilder |
maxDeterminizedStates(int value)
Sets the regexp maxDeterminizedStates.
|
RegexpQueryBuilder |
queryName(String queryName)
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
RegexpQueryBuilder |
rewrite(String rewrite) |
toXContentbuildAsBytes, buildAsBytes, toStringpublic RegexpQueryBuilder boost(float boost)
boost in interface BoostableQueryBuilder<RegexpQueryBuilder>public RegexpQueryBuilder flags(RegexpFlag... flags)
public RegexpQueryBuilder maxDeterminizedStates(int value)
public RegexpQueryBuilder rewrite(String rewrite)
public RegexpQueryBuilder queryName(String queryName)
public void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent in class QueryBuilderIOExceptionCopyright © 2009–2017. All rights reserved.