Class RescorerBuilder<RB extends RescorerBuilder<RB>>

    • Field Detail

      • windowSize

        protected java.lang.Integer windowSize
    • Constructor Detail

      • RescorerBuilder

        public RescorerBuilder()
        Construct an empty RescoreBuilder.
      • RescorerBuilder

        protected RescorerBuilder​(StreamInput in)
                           throws java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException
    • Method Detail

      • doWriteTo

        protected abstract void doWriteTo​(StreamOutput out)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • windowSize

        public RB windowSize​(int windowSize)
      • windowSize

        public java.lang.Integer windowSize()
      • parseFromXContent

        public static RescorerBuilder<?> parseFromXContent​(XContentParser parser)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • doXContent

        protected abstract void doXContent​(XContentBuilder builder,
                                           ToXContent.Params params)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • buildContext

        public final RescoreContext buildContext​(QueryShardContext context)
                                          throws java.io.IOException
        Build the RescoreContext that will be used to actually execute the rescore against a particular shard.
        Throws:
        java.io.IOException
      • innerBuildContext

        protected abstract RescoreContext innerBuildContext​(int windowSize,
                                                            QueryShardContext context)
                                                     throws java.io.IOException
        Extensions override this to build the context that they need for rescoring.
        Throws:
        java.io.IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object