PercolateQueryBuilder@Deprecated public class PercolateResponse extends org.elasticsearch.action.support.broadcast.BroadcastResponse implements java.lang.Iterable<PercolateResponse.Match>, org.elasticsearch.common.xcontent.ToXContentObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PercolateResponse.Match
Deprecated.
Represents a query that has matched with the document that was percolated.
|
| Modifier and Type | Field and Description |
|---|---|
static PercolateResponse.Match[] |
EMPTY
Deprecated.
|
static float |
NO_SCORE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.search.aggregations.InternalAggregations |
getAggregations()
Deprecated.
|
long |
getCount()
Deprecated.
|
PercolateResponse.Match[] |
getMatches()
Deprecated.
|
org.elasticsearch.common.unit.TimeValue |
getTook()
Deprecated.
How long the percolate took.
|
long |
getTookInMillis()
Deprecated.
How long the percolate took in milliseconds.
|
org.elasticsearch.common.xcontent.XContentBuilder |
innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
Deprecated.
|
java.util.Iterator<PercolateResponse.Match> |
iterator()
Deprecated.
|
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in)
Deprecated.
|
org.elasticsearch.common.xcontent.XContentBuilder |
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
Deprecated.
|
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
Deprecated.
|
getFailedShards, getShardFailures, getSuccessfulShards, getTotalShardsremoteAddress, remoteAddresspublic static final PercolateResponse.Match[] EMPTY
public static final float NO_SCORE
public org.elasticsearch.common.unit.TimeValue getTook()
public long getTookInMillis()
public PercolateResponse.Match[] getMatches()
null if th.public long getCount()
public org.elasticsearch.search.aggregations.InternalAggregations getAggregations()
null.public java.util.Iterator<PercolateResponse.Match> iterator()
iterator in interface java.lang.Iterable<PercolateResponse.Match>public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
toXContent in interface org.elasticsearch.common.xcontent.ToXContentjava.io.IOExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder innerToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
java.io.IOExceptionpublic void readFrom(org.elasticsearch.common.io.stream.StreamInput in)
throws java.io.IOException
readFrom in interface org.elasticsearch.common.io.stream.StreamablereadFrom in class org.elasticsearch.action.support.broadcast.BroadcastResponsejava.io.IOExceptionpublic void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in interface org.elasticsearch.common.io.stream.StreamablewriteTo in class org.elasticsearch.action.support.broadcast.BroadcastResponsejava.io.IOException