NamedWriteable
, Writeable
, ToXContent
, ToXContentObject
, Rewriteable<RescorerBuilder<RB>>
QueryRescorerBuilder
public abstract class RescorerBuilder<RB extends RescorerBuilder<RB>> extends java.lang.Object implements NamedWriteable, ToXContentObject, Rewriteable<RescorerBuilder<RB>>
RescorerBuilder
.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_WINDOW_SIZE |
|
protected java.lang.Integer |
windowSize |
MAX_REWRITE_ROUNDS
EMPTY_PARAMS
Modifier | Constructor | Description |
---|---|---|
|
RescorerBuilder() |
Construct an empty RescoreBuilder.
|
protected |
RescorerBuilder(StreamInput in) |
Read from a stream.
|
Modifier and Type | Method | 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.
|
getWriteableName
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
rewrite
isFragment
public static final int DEFAULT_WINDOW_SIZE
protected java.lang.Integer windowSize
public RescorerBuilder()
protected RescorerBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
public final void writeTo(StreamOutput out) throws java.io.IOException
Writeable
protected abstract void doWriteTo(StreamOutput out) throws java.io.IOException
java.io.IOException
public RB windowSize(int windowSize)
public java.lang.Integer windowSize()
public static RescorerBuilder<?> parseFromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
protected abstract void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public final RescoreContext buildContext(QueryShardContext context) throws java.io.IOException
java.io.IOException
protected abstract RescoreContext innerBuildContext(int windowSize, QueryShardContext context) throws java.io.IOException
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object