public class RandomScoreFunctionBuilder extends ScoreFunctionBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
RandomScoreFunctionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
String |
getName() |
RandomScoreFunctionBuilder |
seed(int seed)
Sets the seed based on which the random number will be generated.
|
RandomScoreFunctionBuilder |
seed(long seed)
seed variant taking a long value.
|
RandomScoreFunctionBuilder |
seed(String seed)
seed variant taking a String value.
|
buildWeight, setWeight, toXContentpublic String getName()
getName in class ScoreFunctionBuilderpublic RandomScoreFunctionBuilder seed(int seed)
seed - The seed.public RandomScoreFunctionBuilder seed(long seed)
seed(int)public RandomScoreFunctionBuilder seed(String seed)
seed(int)public void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent in class ScoreFunctionBuilderIOExceptionCopyright © 2009–2017. All rights reserved.