Module org.elasticsearch.server
Package org.elasticsearch.search.rescore
Class RescorerBuilder<RB extends RescorerBuilder<RB>>
java.lang.Object
org.elasticsearch.search.rescore.RescorerBuilder<RB>
- All Implemented Interfaces:
- NamedWriteable,- VersionedNamedWriteable,- Writeable,- Rewriteable<RescorerBuilder<RB>>,- ToXContent,- ToXContentObject
- Direct Known Subclasses:
- QueryRescorerBuilder
public abstract class RescorerBuilder<RB extends RescorerBuilder<RB>>
extends Object
implements VersionedNamedWriteable, ToXContentObject, Rewriteable<RescorerBuilder<RB>>
The abstract base builder for instances of 
RescorerBuilder.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsFields inherited from interface org.elasticsearch.index.query.RewriteableMAX_REWRITE_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructorsModifierConstructorDescriptionConstruct an empty RescoreBuilder.protectedRead from a stream.
- 
Method SummaryModifier and TypeMethodDescriptionfinal RescoreContextbuildContext(SearchExecutionContext context) Build the RescoreContext that will be used to actually execute the rescore against a particular shard.protected abstract voiddoWriteTo(StreamOutput out) protected abstract voiddoXContent(XContentBuilder builder, ToXContent.Params params) booleaninthashCode()protected abstract RescoreContextinnerBuildContext(int windowSize, SearchExecutionContext context) Extensions override this to build the context that they need for rescoring.static RescorerBuilder<?>parseFromXContent(XContentParser parser) toString()toXContent(XContentBuilder builder, ToXContent.Params params) windowSize(int windowSize) final voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.index.query.RewriteablerewriteMethods inherited from interface org.elasticsearch.xcontent.ToXContentObjectisFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteablegetMinimalSupportedVersion, getWriteableName
- 
Field Details- 
DEFAULT_WINDOW_SIZEpublic static final int DEFAULT_WINDOW_SIZE- See Also:
 
- 
windowSize
 
- 
- 
Constructor Details- 
RescorerBuilderpublic RescorerBuilder()Construct an empty RescoreBuilder.
- 
RescorerBuilderRead from a stream.- Throws:
- IOException
 
 
- 
- 
Method Details- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
doWriteTo- Throws:
- IOException
 
- 
windowSize
- 
windowSize
- 
parseFromXContent- Throws:
- IOException
 
- 
toXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
- toXContentin interface- ToXContent
- Throws:
- IOException
 
- 
doXContentprotected abstract void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
- IOException
 
- 
buildContextBuild the RescoreContext that will be used to actually execute the rescore against a particular shard.- Throws:
- IOException
 
- 
innerBuildContextprotected abstract RescoreContext innerBuildContext(int windowSize, SearchExecutionContext context) throws IOException Extensions override this to build the context that they need for rescoring.- Throws:
- IOException
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-