Constructor and Description |
---|
RawDoc()
Construct empty (typically for JSON marshalling).
|
RawDoc(Map<String,Object> source,
String id,
double score,
String index,
String type)
Construct the document with all the meta data.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Return the Id value.
|
String |
getIndex()
Return the index name.
|
double |
getScore()
Return the score.
|
Map<String,Object> |
getSource()
Return the source document as a Map.
|
String |
getType()
Return the index type.
|
void |
setId(String id)
Set the id value.
|
void |
setIndex(String index)
Set the index name.
|
void |
setScore(double score)
Set the score.
|
void |
setSource(Map<String,Object> source)
Set the source document.
|
void |
setType(String type)
Set the index type.
|
public RawDoc(Map<String,Object> source, String id, double score, String index, String type)
public RawDoc()
Copyright © 2019. All rights reserved.