private FieldExtractor _createExtractorFor(Metadata metadata) {
        // Boot metadata tags that are not supported in this version of Elasticsearch
        if (version.onOrAfter(EsMajorVersion.V_6_X)) {
            // 6.0 Removed support for TTL and Timestamp metadata on index and update requests.
            switch (metadata) {
                case TTL: // Fall through
                case TIMESTAMP:
                    return new UnsupportedMetadataFieldExtractor(metadata, version);
            }
        }

        return createExtractorFor(metadata);
    }
private FieldExtractor _createExtractorFor ( Metadata metadata ) { if ( version . onOrAfter ( EsMajorVersion . V_6_X ) ) { switch ( metadata ) { case TTL : case TIMESTAMP : return new UnsupportedMetadataFieldExtractor ( metadata , version ) ; } } return createExtractorFor ( metadata ) ; }
If a metadata tag is unsupported for this version of Elasticsearch then a