public class Doc extends Object
| Constructor and Description |
|---|
Doc(String index,
String id) |
Doc(String index,
String type,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(String field)
Specific stored fields can be specified to be retrieved per document to get,
similar to the fields parameter of the Get API.
|
void |
addFields(Collection<String> fields)
Specific stored fields can be specified to be retrieved per document to get,
similar to the fields parameter of the Get API.
|
Collection<String> |
getFields() |
String |
getId() |
String |
getIndex() |
String |
getRouting() |
Object |
getSource() |
String |
getType() |
void |
setRouting(String routing) |
void |
setSource(Object source)
By default, the _source field will be returned for every document (if stored).
|
protected Map<String,Object> |
toMap() |
public String getIndex()
public String getType()
public String getId()
public Collection<String> getFields()
public void addFields(Collection<String> fields)
public void addField(String field)
public void setRouting(String routing)
public String getRouting()
public void setSource(Object source)
public Object getSource()
Copyright © 2017. All rights reserved.