<commit_before>/*
 * 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; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */
package org.elasticsearch.xpack.core.searchablesnapshots;

import org.elasticsearch.common.settings.Setting;
import org.elasticsearch.license.License;
import org.elasticsearch.license.LicensedFeature;
import org.elasticsearch.snapshots.SearchableSnapshotsSettings;

import java.util.Map;

import static org.elasticsearch.index.IndexModule.INDEX_STORE_TYPE_SETTING;
import static org.elasticsearch.snapshots.SearchableSnapshotsSettings.SEARCHABLE_SNAPSHOT_PARTIAL_SETTING_KEY;

public class SearchableSnapshotsConstants {

    // This should really be in the searchable-snapshots module, but ILM needs access to it
    // to short-circuit if not allowed. We should consider making the coupling looser,
    // perhaps through SPI.
    public static final LicensedFeature.Momentary SEARCHABLE_SNAPSHOT_FEATURE =
        LicensedFeature.momentary(null, "searchable-snapshots", License.OperationMode.PLATINUM);

    public static final Setting<Boolean> SNAPSHOT_PARTIAL_SETTING = Setting.boolSetting(
        SEARCHABLE_SNAPSHOT_PARTIAL_SETTING_KEY,
        false,<commit_msg>Fix searchable snapshots license level (#78627)<commit_after>/*
 * 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; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */
package org.elasticsearch.xpack.core.searchablesnapshots;

import org.elasticsearch.common.settings.Setting;
import org.elasticsearch.license.License;
import org.elasticsearch.license.LicensedFeature;
import org.elasticsearch.snapshots.SearchableSnapshotsSettings;

import java.util.Map;

import static org.elasticsearch.index.IndexModule.INDEX_STORE_TYPE_SETTING;
import static org.elasticsearch.snapshots.SearchableSnapshotsSettings.SEARCHABLE_SNAPSHOT_PARTIAL_SETTING_KEY;

public class SearchableSnapshotsConstants {

    // This should really be in the searchable-snapshots module, but ILM needs access to it
    // to short-circuit if not allowed. We should consider making the coupling looser,
    // perhaps through SPI.
    public static final LicensedFeature.Momentary SEARCHABLE_SNAPSHOT_FEATURE =
        LicensedFeature.momentary(null, "searchable-snapshots", License.OperationMode.ENTERPRISE);

    public static final Setting<Boolean> SNAPSHOT_PARTIAL_SETTING = Setting.boolSetting(
        SEARCHABLE_SNAPSHOT_PARTIAL_SETTING_KEY,
        false,
{'fraction_non_alphanumeric': 0.06669123065585851, 'fraction_numerical': 0.004789977892409728, 'mean_word_length': 5.060267857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2568100', 'n_tokens_mistral': 754, 'n_tokens_neox': 765, 'n_words': 208}