public abstract class RescoreBuilder<RB extends RescoreBuilder<RB>> extends ToXContentToBytes implements NamedWriteable
RescoreBuilder
.Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
protected java.lang.Integer |
windowSize |
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
|
RescoreBuilder()
Construct an empty RescoreBuilder.
|
protected |
RescoreBuilder(StreamInput in)
Read from a stream.
|
Modifier and Type | Method and Description |
---|---|
abstract QueryRescorer.QueryRescoreContext |
build(QueryShardContext context) |
protected abstract void |
doWriteTo(StreamOutput out) |
protected abstract void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static RescoreBuilder<?> |
parseFromXContent(QueryParseContext parseContext) |
static QueryRescorerBuilder |
queryRescorer(QueryBuilder queryBuilder) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
java.lang.Integer |
windowSize() |
RB |
windowSize(int windowSize) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
buildAsBytes, buildAsBytes, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getWriteableName
isFragment
public RescoreBuilder()
protected RescoreBuilder(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 RescoreBuilder<?> parseFromXContent(QueryParseContext parseContext) 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 abstract QueryRescorer.QueryRescoreContext build(QueryShardContext context) throws java.io.IOException
java.io.IOException
public static QueryRescorerBuilder queryRescorer(QueryBuilder queryBuilder)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object