public abstract class RescorerBuilder<RB extends RescorerBuilder<RB>> extends java.lang.Object implements NamedWriteable, ToXContentObject, Rewriteable<RescorerBuilder<RB>>
RescorerBuilder.Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_WINDOW_SIZE |
protected java.lang.Integer |
windowSize |
EMPTY_PARAMSMAX_REWRITE_ROUNDS| Modifier | Constructor and Description |
|---|---|
|
RescorerBuilder()
Construct an empty RescoreBuilder.
|
protected |
RescorerBuilder(StreamInput in)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
RescoreContext |
buildContext(QueryShardContext context)
Build the RescoreContext that will be used to actually
execute the rescore against a particular shard.
|
protected abstract void |
doWriteTo(StreamOutput out) |
protected abstract void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
protected abstract RescoreContext |
innerBuildContext(int windowSize,
QueryShardContext context)
Extensions override this to build the context that they need for rescoring.
|
static RescorerBuilder<?> |
parseFromXContent(XContentParser parser) |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
java.lang.Integer |
windowSize() |
RB |
windowSize(int windowSize) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetWriteableNameisFragmentrewrite, rewrite, rewrite, rewrite, rewriteAndFetch, rewriteAndFetchpublic static final int DEFAULT_WINDOW_SIZE
protected java.lang.Integer windowSize
public RescorerBuilder()
protected RescorerBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic final void writeTo(StreamOutput out) throws java.io.IOException
Writeableprotected abstract void doWriteTo(StreamOutput out) throws java.io.IOException
java.io.IOExceptionpublic RB windowSize(int windowSize)
public java.lang.Integer windowSize()
public static RescorerBuilder<?> parseFromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionprotected abstract void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic final RescoreContext buildContext(QueryShardContext context) throws java.io.IOException
java.io.IOExceptionprotected abstract RescoreContext innerBuildContext(int windowSize, QueryShardContext context) throws java.io.IOException
java.io.IOExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object