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.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.Replaceable
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description RankEvalRequest(RankEvalSpec rankingEvaluationSpec, String[] indices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)RankEvalSpecgetRankEvalSpec()Returns the specification of the ranking evaluation.inthashCode()String[]indices()Returns the array of indices that the action relates toRankEvalRequestindices(String... indices)Sets the indices the search will be executed on.IndicesOptionsindicesOptions()Returns the indices options used to resolve indices.voidindicesOptions(IndicesOptions indicesOptions)voidsetRankEvalSpec(RankEvalSpec task)Set the specification of the ranking evaluation.ActionRequestValidationExceptionvalidate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
-
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Constructor Detail
-
RankEvalRequest
public RankEvalRequest(RankEvalSpec rankingEvaluationSpec, String[] indices)
-
-
Method Detail
-
validate
public ActionRequestValidationException validate()
- Specified by:
validatein classActionRequest
-
getRankEvalSpec
public RankEvalSpec getRankEvalSpec()
Returns the specification of the ranking evaluation.
-
setRankEvalSpec
public void setRankEvalSpec(RankEvalSpec task)
Set the specification of the ranking evaluation.
-
indices
public RankEvalRequest indices(String... indices)
Sets the indices the search will be executed on.- Specified by:
indicesin interfaceIndicesRequest.Replaceable
-
indices
public String[] indices()
Description copied from interface:IndicesRequestReturns the array of indices that the action relates to- Specified by:
indicesin interfaceIndicesRequest- Returns:
- the indices for this request
-
indicesOptions
public IndicesOptions indicesOptions()
Description copied from interface:IndicesRequestReturns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.- Specified by:
indicesOptionsin interfaceIndicesRequest
-
indicesOptions
public void indicesOptions(IndicesOptions indicesOptions)
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classActionRequest- Throws:
IOException
-
-