public class RandomScoreFunctionBuilder extends ScoreFunctionBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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, toXContent
public String getName()
getName
in class ScoreFunctionBuilder
public 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 ScoreFunctionBuilder
IOException
Copyright © 2009–2016. All rights reserved.