PercolateQueryBuilder@Deprecated public class PercolateResponse extends BroadcastResponse implements java.lang.Iterable<PercolateResponse.Match>, ToXContentObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PercolateResponse.Match
Deprecated.
Represents a query that has matched with the document that was percolated.
|
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static PercolateResponse.Match[] |
EMPTY
Deprecated.
|
static float |
NO_SCORE
Deprecated.
|
EMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
InternalAggregations |
getAggregations()
Deprecated.
|
long |
getCount()
Deprecated.
|
PercolateResponse.Match[] |
getMatches()
Deprecated.
|
TimeValue |
getTook()
Deprecated.
How long the percolate took.
|
long |
getTookInMillis()
Deprecated.
How long the percolate took in milliseconds.
|
XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params)
Deprecated.
|
java.util.Iterator<PercolateResponse.Match> |
iterator()
Deprecated.
|
void |
readFrom(StreamInput in)
Deprecated.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params)
Deprecated.
|
void |
writeTo(StreamOutput out)
Deprecated.
|
getFailedShards, getShardFailures, getSuccessfulShards, getTotalShardsremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final PercolateResponse.Match[] EMPTY
public static final float NO_SCORE
public TimeValue getTook()
public long getTookInMillis()
public PercolateResponse.Match[] getMatches()
null if th.public long getCount()
public InternalAggregations getAggregations()
null.public java.util.Iterator<PercolateResponse.Match> iterator()
iterator in interface java.lang.Iterable<PercolateResponse.Match>public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
readFrom in interface StreamablereadFrom in class BroadcastResponsejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
writeTo in interface StreamablewriteTo in class BroadcastResponsejava.io.IOException