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.EmptyNested 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
contextIdFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionRankFeatureResult(ShardSearchContextId id, SearchShardTarget shardTarget, ShardSearchRequest request) -
Method Summary
Modifier and TypeMethodDescriptionbooleanSpecifies 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 otherwisenullvoidshardResult(RankFeatureShardResult shardResult) voidwriteTo(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, setShardSearchRequestMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSearchPhaseResult- Throws:
IOException
-
rankFeatureResult
Description copied from class:SearchPhaseResultReturns the rank feature result iff it's included in this response otherwisenull- Overrides:
rankFeatureResultin classSearchPhaseResult
-
shardResult
-
shardResult
-
hasSearchContext
public boolean hasSearchContext()Description copied from class:SearchPhaseResultSpecifies whether the specific search phase results are associated with an opened SearchContext on the shards that executed the request.- Overrides:
hasSearchContextin classSearchPhaseResult
-