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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetWriteableNameisFragmentpublic RescoreBuilder()
protected RescoreBuilder(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 RescoreBuilder<?> parseFromXContent(QueryParseContext parseContext) 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 abstract QueryRescorer.QueryRescoreContext build(QueryShardContext context) throws java.io.IOException
java.io.IOExceptionpublic static QueryRescorerBuilder queryRescorer(QueryBuilder queryBuilder)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object