public class TemplateQueryBuilder extends BaseQueryBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
TemplateQueryBuilder(String template,
Map<String,Object> vars) |
TemplateQueryBuilder(String template,
ScriptService.ScriptType templateType,
Map<String,Object> vars) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
buildAsBytes, buildAsBytes, toString, toXContentpublic TemplateQueryBuilder(String template, Map<String,Object> vars)
template - the template to use for that query.vars - the parameters to fill the template with.public TemplateQueryBuilder(String template, ScriptService.ScriptType templateType, Map<String,Object> vars)
template - the template to use for that query.vars - the parameters to fill the template with.templateType - what kind of template (INLINE,FILE,ID)protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent in class BaseQueryBuilderIOExceptionCopyright © 2009–2016. All rights reserved.