Package org.elasticsearch.index.rankeval
Class RankEvalRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.index.rankeval.RankEvalRequest
- All Implemented Interfaces:
IndicesRequest,IndicesRequest.Replaceable,Writeable,TaskAwareRequest
public class RankEvalRequest extends ActionRequest implements IndicesRequest.Replaceable
Request to perform a search ranking evaluation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object> -
Constructor Summary
Constructors Constructor Description RankEvalRequest(RankEvalSpec rankingEvaluationSpec, java.lang.String[] indices) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)RankEvalSpecgetRankEvalSpec()Returns the specification of the ranking evaluation.inthashCode()java.lang.String[]indices()RankEvalRequestindices(java.lang.String... indices)Sets the indices the search will be executed on.IndicesOptionsindicesOptions()voidindicesOptions(IndicesOptions indicesOptions)SearchTypesearchType()The type of search to execute.voidsearchType(SearchType searchType)The search type to execute, defaults toSearchType.DEFAULT.voidsetRankEvalSpec(RankEvalSpec task)Set the specification of the ranking evaluation.ActionRequestValidationExceptionvalidate()voidwriteTo(StreamOutput out)Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
Method Details
-
validate
- Specified by:
validatein classActionRequest
-
getRankEvalSpec
Returns the specification of the ranking evaluation. -
setRankEvalSpec
Set the specification of the ranking evaluation. -
indices
Sets the indices the search will be executed on.- Specified by:
indicesin interfaceIndicesRequest.Replaceable
-
indices
public java.lang.String[] indices()- Specified by:
indicesin interfaceIndicesRequest- Returns:
- the indices for this request
-
indicesOptions
- Specified by:
indicesOptionsin interfaceIndicesRequest
-
indicesOptions
-
searchType
The search type to execute, defaults toSearchType.DEFAULT. -
searchType
The type of search to execute. -
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-