Class WeightBuilder

java.lang.Object
org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<WeightBuilder>
org.elasticsearch.index.query.functionscore.WeightBuilder
All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class WeightBuilder extends ScoreFunctionBuilder<WeightBuilder>
A query that multiplies the weight to the score.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    Writeable.Reader<V>, Writeable.Writer<V>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    Standard constructor.
    Read from a stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    doEquals(WeightBuilder functionBuilder)
    Check that two instances of the same subclass of ScoreFunctionBuilder are equal.
    protected int
    Hashcode for fields defined in this subclass of ScoreFunctionBuilder.
    protected ScoreFunction
    Build the Lucene ScoreFunction for this builder.
    protected void
    Write the subclass's components into the stream.
    protected void
    doXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
    Convert this subclass's data into XContent.
    The name of this score function.

    Methods inherited from class org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder

    equals, getWeight, getWriteableName, hashCode, setWeight, toFunction, toXContent, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment

    isFragment