public class InnerHitsBuilder extends Object implements ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
InnerHitsBuilder.InnerHit |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
InnerHitsBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addInnerHit(String name,
InnerHitsBuilder.InnerHit innerHit) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void addInnerHit(String name, InnerHitsBuilder.InnerHit innerHit)
Copyright © 2009–2016. All rights reserved.