Class StaticInput

  • All Implemented Interfaces:
    org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

    public class StaticInput
    extends AbstractInput
    • Method Detail

      • toXContent

        public org.elasticsearch.common.xcontent.XContentBuilder toXContent​(org.elasticsearch.common.xcontent.XContentBuilder builder,
                                                                            org.elasticsearch.common.xcontent.ToXContent.Params params)
                                                                     throws IOException
        Throws:
        IOException
      • patchForIndexMappingBugFix

        public static void patchForIndexMappingBugFix​(com.fasterxml.jackson.databind.node.ObjectNode watchJson)
        Fixes bug in regard to index mapping. Dynamic index mapping was originally enabled for the attribute "value", which made using different value structures impossible. As index mappings for specific fields cannot be changed retroactively, we need to write this to a new field name.
      • unpatchForIndexMappingBugFix

        public static void unpatchForIndexMappingBugFix​(Map<String,​Object> watchJson)