Search in sources :

Example 1 with RootObjectMapper

use of org.elasticsearch.index.mapper.RootObjectMapper in project elasticsearch by elastic.

the class InternalEngineTests method dynamicUpdate.

private Mapping dynamicUpdate() {
    BuilderContext context = new BuilderContext(Settings.builder().put(IndexMetaData.SETTING_VERSION_CREATED, Version.CURRENT).build(), new ContentPath());
    final RootObjectMapper root = new RootObjectMapper.Builder("some_type").build(context);
    return new Mapping(Version.CURRENT, root, new MetadataFieldMapper[0], emptyMap());
}
Also used : RootObjectMapper(org.elasticsearch.index.mapper.RootObjectMapper) BuilderContext(org.elasticsearch.index.mapper.Mapper.BuilderContext) Mapping(org.elasticsearch.index.mapper.Mapping) ContentPath(org.elasticsearch.index.mapper.ContentPath)

Aggregations

ContentPath (org.elasticsearch.index.mapper.ContentPath)1 BuilderContext (org.elasticsearch.index.mapper.Mapper.BuilderContext)1 Mapping (org.elasticsearch.index.mapper.Mapping)1 RootObjectMapper (org.elasticsearch.index.mapper.RootObjectMapper)1