public class TemplateQueryBuilder extends QueryBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
TemplateQueryBuilder(String template,
Map<String,Object> vars)
Deprecated.
Use
TemplateQueryBuilder(Template) instead. |
TemplateQueryBuilder(String template,
ScriptService.ScriptType templateType,
Map<String,Object> vars)
Deprecated.
Use
TemplateQueryBuilder(Template) instead. |
TemplateQueryBuilder(Template template) |
Modifier and Type | Method and Description |
---|---|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params builderParams) |
toXContent
buildAsBytes, buildAsBytes, toString
public TemplateQueryBuilder(Template template)
template
- the template to use for that query.@Deprecated public TemplateQueryBuilder(String template, Map<String,Object> vars)
TemplateQueryBuilder(Template)
instead.template
- the template to use for that query.vars
- the parameters to fill the template with.@Deprecated public TemplateQueryBuilder(String template, ScriptService.ScriptType templateType, Map<String,Object> vars)
TemplateQueryBuilder(Template)
instead.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 builderParams) throws IOException
doXContent
in class QueryBuilder
IOException
Copyright © 2009–2016. All rights reserved.