public class WrapperQueryBuilder extends BaseQueryBuilder
BoolQueryBuilder bool = new BoolQueryBuilder();
bool.must(new WrapperQueryBuilder("{\"term\": {\"field\":\"value\"}}");
bool.must(new TermQueryBuilder("field2","value2");
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
WrapperQueryBuilder(byte[] source,
int offset,
int length) |
WrapperQueryBuilder(String source)
Builds a JSONQueryBuilder using the provided JSON query string.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
buildAsBytes, buildAsBytes, toString, toXContentpublic WrapperQueryBuilder(String source)
public WrapperQueryBuilder(byte[] source,
int offset,
int length)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent in class BaseQueryBuilderIOExceptionCopyright © 2009–2016. All rights reserved.