public static class PercolateResponse.Match
extends java.lang.Object
implements org.elasticsearch.common.io.stream.Streamable
| Constructor and Description |
|---|
Match(org.elasticsearch.common.text.Text index,
org.elasticsearch.common.text.Text id,
float score)
Constructor only for internal usage.
|
Match(org.elasticsearch.common.text.Text index,
org.elasticsearch.common.text.Text id,
float score,
java.util.Map<java.lang.String,org.elasticsearch.search.fetch.subphase.highlight.HighlightField> hl)
Constructor only for internal usage.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,org.elasticsearch.search.fetch.subphase.highlight.HighlightField> |
getHighlightFields() |
org.elasticsearch.common.text.Text |
getId() |
org.elasticsearch.common.text.Text |
getIndex() |
float |
getScore() |
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in) |
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
public Match(org.elasticsearch.common.text.Text index,
org.elasticsearch.common.text.Text id,
float score,
java.util.Map<java.lang.String,org.elasticsearch.search.fetch.subphase.highlight.HighlightField> hl)
public Match(org.elasticsearch.common.text.Text index,
org.elasticsearch.common.text.Text id,
float score)
public org.elasticsearch.common.text.Text getIndex()
public org.elasticsearch.common.text.Text getId()
public float getScore()
Float.NaN is returned.@Nullable public java.util.Map<java.lang.String,org.elasticsearch.search.fetch.subphase.highlight.HighlightField> getHighlightFields()
null is returned.public void readFrom(org.elasticsearch.common.io.stream.StreamInput in)
throws java.io.IOException
readFrom in interface org.elasticsearch.common.io.stream.Streamablejava.io.IOExceptionpublic void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in interface org.elasticsearch.common.io.stream.Streamablejava.io.IOException