Module org.elasticsearch.server
Class RankFeatureResult
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.search.SearchPhaseResult
org.elasticsearch.search.rank.feature.RankFeatureResult
- All Implemented Interfaces:
Writeable
,RefCounted
The result of a rank feature search phase.
Each instance holds a
RankFeatureShardResult
along with the references associated with it.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from class org.elasticsearch.search.SearchPhaseResult
contextId
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED
-
Constructor Summary
ConstructorsConstructorDescriptionRankFeatureResult
(ShardSearchContextId id, SearchShardTarget shardTarget, ShardSearchRequest request) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies whether the specific search phase results are associated with an opened SearchContext on the shards that executed the request.Returns the rank feature result iff it's included in this response otherwisenull
void
shardResult
(RankFeatureShardResult shardResult) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.search.SearchPhaseResult
fetchResult, getContextId, getRescoreDocIds, getSearchShardTarget, getShardIndex, getShardSearchRequest, queryResult, setRescoreDocIds, setSearchShardTarget, setShardIndex, setShardSearchRequest
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
RankFeatureResult
public RankFeatureResult() -
RankFeatureResult
public RankFeatureResult(ShardSearchContextId id, SearchShardTarget shardTarget, ShardSearchRequest request) -
RankFeatureResult
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classSearchPhaseResult
- Throws:
IOException
-
rankFeatureResult
Description copied from class:SearchPhaseResult
Returns the rank feature result iff it's included in this response otherwisenull
- Overrides:
rankFeatureResult
in classSearchPhaseResult
-
shardResult
-
shardResult
-
hasSearchContext
public boolean hasSearchContext()Description copied from class:SearchPhaseResult
Specifies whether the specific search phase results are associated with an opened SearchContext on the shards that executed the request.- Overrides:
hasSearchContext
in classSearchPhaseResult
-