public class ParsedDocument extends Object
Constructor and Description |
---|
ParsedDocument(org.apache.lucene.document.Field uid,
org.apache.lucene.document.Field version,
String id,
String type,
String routing,
long timestamp,
long ttl,
List<ParseContext.Document> documents,
BytesReference source,
Mapping dynamicMappingsUpdate) |
Modifier and Type | Method and Description |
---|---|
void |
addDynamicMappingsUpdate(Mapping update) |
List<ParseContext.Document> |
docs() |
Mapping |
dynamicMappingsUpdate()
Return dynamic updates to mappings or
null if there were no
updates to the mappings. |
String |
id() |
String |
parent() |
ParsedDocument |
parent(String parent) |
ParseContext.Document |
rootDoc() |
String |
routing() |
void |
setSource(BytesReference source) |
BytesReference |
source() |
long |
timestamp() |
String |
toString() |
long |
ttl() |
String |
type() |
org.apache.lucene.document.Field |
uid() |
org.apache.lucene.document.Field |
version() |
public ParsedDocument(org.apache.lucene.document.Field uid, org.apache.lucene.document.Field version, String id, String type, String routing, long timestamp, long ttl, List<ParseContext.Document> documents, BytesReference source, Mapping dynamicMappingsUpdate)
public org.apache.lucene.document.Field uid()
public org.apache.lucene.document.Field version()
public String id()
public String type()
public String routing()
public long timestamp()
public long ttl()
public ParseContext.Document rootDoc()
public List<ParseContext.Document> docs()
public BytesReference source()
public void setSource(BytesReference source)
public ParsedDocument parent(String parent)
public String parent()
public Mapping dynamicMappingsUpdate()
null
if there were no
updates to the mappings.public void addDynamicMappingsUpdate(Mapping update)
Copyright © 2009–2017. All rights reserved.