public static class PercolateResponse.Match extends Object implements Streamable
Constructor and Description |
---|
Match(Text index,
Text id,
float score)
Constructor only for internal usage.
|
Match(Text index,
Text id,
float score,
Map<String,HighlightField> hl)
Constructor only for internal usage.
|
Modifier and Type | Method and Description |
---|---|
Map<String,HighlightField> |
getHighlightFields() |
Text |
getId() |
Text |
getIndex() |
float |
getScore() |
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
public Match(Text index, Text id, float score, Map<String,HighlightField> hl)
public Text getIndex()
public Text getId()
public float getScore()
Float.NaN
is returned.@Nullable public Map<String,HighlightField> getHighlightFields()
null
is returned.public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.