public static class ParseContext.InternalParseContext extends ParseContext
ParseContext.Document, ParseContext.InternalParseContext
Constructor and Description |
---|
InternalParseContext(Settings indexSettings,
DocumentMapperParser docMapperParser,
DocumentMapper docMapper,
ContentPath path) |
Modifier and Type | Method and Description |
---|---|
void |
addDoc(ParseContext.Document doc) |
void |
addDynamicMappingsUpdate(Mapper mapper)
Add a dynamic update to the root object mapper.
|
AllEntries |
allEntries() |
AnalysisService |
analysisService() |
ParseContext.Document |
doc() |
float |
docBoost() |
void |
docBoost(float docBoost) |
DocumentMapper |
docMapper() |
DocumentMapperParser |
docMapperParser() |
List<ParseContext.Document> |
docs() |
Mapper |
dynamicMappingsUpdate()
Get dynamic updates to the root object mapper.
|
boolean |
flyweight() |
String |
id() |
void |
id(String id)
Really, just the id mapper should set this.
|
String |
index() |
Settings |
indexSettings() |
MapperService |
mapperService() |
XContentParser |
parser() |
ContentPath |
path() |
void |
reset(XContentParser parser,
ParseContext.Document document,
SourceToParse source) |
RootObjectMapper |
root() |
ParseContext.Document |
rootDoc() |
BytesReference |
source() |
void |
source(BytesReference source) |
SourceToParse |
sourceToParse() |
StringBuilder |
stringBuilder()
A string builder that can be used to construct complex names for example.
|
String |
type() |
org.apache.lucene.document.Field |
uid() |
void |
uid(org.apache.lucene.document.Field uid)
Really, just the uid mapper should set this.
|
org.apache.lucene.document.Field |
version() |
void |
version(org.apache.lucene.document.Field version) |
createCopyToContext, createExternalValueContext, createMultiFieldContext, createNestedContext, externalValue, externalValueSet, includeInAll, isWithinCopyTo, isWithinMultiFields, overridePath, parseExternalValue, switchDoc
public InternalParseContext(@Nullable Settings indexSettings, DocumentMapperParser docMapperParser, DocumentMapper docMapper, ContentPath path)
public void reset(XContentParser parser, ParseContext.Document document, SourceToParse source)
public boolean flyweight()
flyweight
in class ParseContext
public DocumentMapperParser docMapperParser()
docMapperParser
in class ParseContext
public String index()
index
in class ParseContext
@Nullable public Settings indexSettings()
indexSettings
in class ParseContext
public String type()
type
in class ParseContext
public SourceToParse sourceToParse()
sourceToParse
in class ParseContext
public BytesReference source()
source
in class ParseContext
public void source(BytesReference source)
source
in class ParseContext
public ContentPath path()
path
in class ParseContext
public XContentParser parser()
parser
in class ParseContext
public ParseContext.Document rootDoc()
rootDoc
in class ParseContext
public List<ParseContext.Document> docs()
docs
in class ParseContext
public ParseContext.Document doc()
doc
in class ParseContext
public void addDoc(ParseContext.Document doc)
addDoc
in class ParseContext
public RootObjectMapper root()
root
in class ParseContext
public DocumentMapper docMapper()
docMapper
in class ParseContext
public AnalysisService analysisService()
analysisService
in class ParseContext
public MapperService mapperService()
mapperService
in class ParseContext
public String id()
id
in class ParseContext
public void id(String id)
id
in class ParseContext
public org.apache.lucene.document.Field uid()
uid
in class ParseContext
public void uid(org.apache.lucene.document.Field uid)
uid
in class ParseContext
public org.apache.lucene.document.Field version()
version
in class ParseContext
public void version(org.apache.lucene.document.Field version)
version
in class ParseContext
public AllEntries allEntries()
allEntries
in class ParseContext
public float docBoost()
docBoost
in class ParseContext
public void docBoost(float docBoost)
docBoost
in class ParseContext
public StringBuilder stringBuilder()
stringBuilder
in class ParseContext
public void addDynamicMappingsUpdate(Mapper mapper)
ParseContext
addDynamicMappingsUpdate
in class ParseContext
public Mapper dynamicMappingsUpdate()
ParseContext
dynamicMappingsUpdate
in class ParseContext
Copyright © 2009–2016. All rights reserved.