Package org.elasticsearch.index.mapper.object.RootObjectMapper

Examples of org.elasticsearch.index.mapper.object.RootObjectMapper.Builder.build()


        buildMapping(mapperBuilder);

        XContentBuilder contentBuilder = JsonXContent.contentBuilder();

        contentBuilder.startObject();
        mapperBuilder.build(new BuilderContext(null, new ContentPath())).toXContent(contentBuilder, null);
        contentBuilder.endObject();

        // cache mapping as string for easy debugging
        _mapping = contentBuilder.string();
      }
View Full Code Here


        buildMapping(mapperBuilder);

        XContentBuilder contentBuilder = JsonXContent.contentBuilder();

        contentBuilder.startObject();
        mapperBuilder.build(new BuilderContext(null, new ContentPath())).toXContent(contentBuilder, null,
            new ToXContent() {

              @Override
              public XContentBuilder toXContent(XContentBuilder builder, Params params)
                  throws IOException {
View Full Code Here

        buildMapping(mapperBuilder);

        XContentBuilder contentBuilder = JsonXContent.contentBuilder();

        contentBuilder.startObject();
        mapperBuilder.build(new BuilderContext(null, new ContentPath())).toXContent(contentBuilder,
            EMPTY_PARAMS, new ToXContent() {

              @Override
              public XContentBuilder toXContent(XContentBuilder builder, Params params)
                  throws IOException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.