public abstract class ScoreFunctionBuilder extends Object implements ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
ScoreFunctionBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildWeight(XContentBuilder builder) |
protected abstract void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
abstract String |
getName() |
ScoreFunctionBuilder |
setWeight(float weight) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
public ScoreFunctionBuilder setWeight(float weight)
public abstract String getName()
protected void buildWeight(XContentBuilder builder) throws IOException
IOException
public final XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
protected abstract void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.