Module org.elasticsearch.server
Package org.elasticsearch.search.rescore
Class ScriptRescorerBuilder
java.lang.Object
org.elasticsearch.search.rescore.RescorerBuilder<ScriptRescorerBuilder>
org.elasticsearch.search.rescore.ScriptRescorerBuilder
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,Rewriteable<RescorerBuilder<ScriptRescorerBuilder>>,ToXContent,ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.search.rescore.RescorerBuilder
DEFAULT_WINDOW_SIZE, WINDOW_SIZE_FIELD, windowSizeFields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoWriteTo(StreamOutput out) protected voiddoXContent(XContentBuilder builder, ToXContent.Params params) static ScriptRescorerBuilderfromXContent(XContentParser parser) The minimal version of the recipient this object can be sent to.Returns the name of the writeable objectprotected RescoreContextinnerBuildContext(int windowSize, SearchExecutionContext context) Extensions override this to build the context that they need for rescoring.Rewrites this instance based on the provided context.Methods inherited from class org.elasticsearch.search.rescore.RescorerBuilder
buildContext, equals, hashCode, isWindowSizeRequired, parseFromXContent, toString, toXContent, validate, windowSize, windowSize, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ScriptRescorerBuilder
-
ScriptRescorerBuilder
- Throws:
IOException
-
-
Method Details
-
fromXContent
- Throws:
IOException
-
doWriteTo
- Specified by:
doWriteToin classRescorerBuilder<ScriptRescorerBuilder>- Throws:
IOException
-
doXContent
- Specified by:
doXContentin classRescorerBuilder<ScriptRescorerBuilder>- Throws:
IOException
-
innerBuildContext
Description copied from class:RescorerBuilderExtensions override this to build the context that they need for rescoring.- Specified by:
innerBuildContextin classRescorerBuilder<ScriptRescorerBuilder>
-
getWriteableName
Description copied from interface:VersionedNamedWriteableReturns the name of the writeable object -
getMinimalSupportedVersion
Description copied from interface:VersionedNamedWriteableThe minimal version of the recipient this object can be sent to. SeeVersionedNamedWriteable.supportsVersion(TransportVersion)for the default serialization check. -
rewrite
Description copied from interface:RewriteableRewrites this instance based on the provided context. The returned objects will be the same instance as this if no changes during the rewrite were applied.- Throws:
IOException
-