public class TemplateQueryBuilder extends BaseQueryBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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, toXContent
public 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 BaseQueryBuilder
IOException
Copyright © 2009–2015. All rights reserved.