"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.settings = void 0; var _shared = require("./shared"); /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ const settings = specService => { specService.addEndpointDescription('put_settings', { data_autocomplete_rules: { refresh_interval: '1s', number_of_shards: 1, number_of_replicas: 1, 'blocks.read_only': _shared.BOOLEAN, 'blocks.read': _shared.BOOLEAN, 'blocks.write': _shared.BOOLEAN, 'blocks.metadata': _shared.BOOLEAN, term_index_interval: 32, term_index_divisor: 1, 'translog.flush_threshold_ops': 5000, 'translog.flush_threshold_size': '200mb', 'translog.flush_threshold_period': '30m', 'translog.disable_flush': _shared.BOOLEAN, 'cache.filter.max_size': '2gb', 'cache.filter.expire': '2h', 'gateway.snapshot_interval': '10s', routing: { allocation: { include: { tag: '' }, exclude: { tag: '' }, require: { tag: '' }, total_shards_per_node: -1 } }, 'recovery.initial_shards': { __one_of: ['quorum', 'quorum-1', 'half', 'full', 'full-1'] }, 'ttl.disable_purge': _shared.BOOLEAN, analysis: { analyzer: {}, tokenizer: {}, filter: {}, char_filter: {} }, 'cache.query.enable': _shared.BOOLEAN, shadow_replicas: _shared.BOOLEAN, shared_filesystem: _shared.BOOLEAN, data_path: 'path', codec: { __one_of: ['default', 'best_compression', 'lucene_default'] } } }); }; exports.settings = settings;