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,
org.apache.lucene.analysis.Analyzer analyzer,
BytesReference source,
boolean mappingsModified) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.Analyzer |
analyzer() |
List<ParseContext.Document> |
docs() |
String |
id() |
boolean |
mappingsModified()
Has the parsed document caused mappings to be modified?
|
String |
parent() |
ParsedDocument |
parent(String parent) |
ParseContext.Document |
rootDoc() |
String |
routing() |
void |
setMappingsModified()
latches the mapping to be marked as modified.
|
ParsedDocument |
setMappingsModified(Tuple<DocumentMapper,Boolean> docMapper)
Uses the value of get document or create to automatically set if mapping is
modified or not.
|
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, org.apache.lucene.analysis.Analyzer analyzer, BytesReference source, boolean mappingsModified)
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 org.apache.lucene.analysis.Analyzer analyzer()
public BytesReference source()
public void setSource(BytesReference source)
public ParsedDocument parent(String parent)
public String parent()
public boolean mappingsModified()
public void setMappingsModified()
public ParsedDocument setMappingsModified(Tuple<DocumentMapper,Boolean> docMapper)
Copyright © 2009–2015. All rights reserved.