File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
server/src/main/java/org/elasticsearch Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 4949import java .util .Map ;
5050import java .util .Set ;
5151
52+ import static org .elasticsearch .index .IndexSettings .SYNTHETIC_VECTORS ;
53+
5254/**
5355 * Encapsulates all valid index level settings.
5456 * @see Property#IndexScope
@@ -240,6 +242,9 @@ public final class IndexScopedSettings extends AbstractScopedSettings {
240242 if (IndexSettings .DOC_VALUES_SKIPPER ) {
241243 settings .add (IndexSettings .USE_DOC_VALUES_SKIPPER );
242244 }
245+ if (SYNTHETIC_VECTORS ) {
246+ settings .add (IndexSettings .INDEX_MAPPING_SOURCE_SYNTHETIC_VECTORS_SETTING );
247+ }
243248 BUILT_IN_INDEX_SETTINGS = Collections .unmodifiableSet (settings );
244249 };
245250
Original file line number Diff line number Diff line change @@ -847,6 +847,14 @@ private static String getIgnoreAboveDefaultValue(final Settings settings) {
847847 Property .Final
848848 );
849849
850+ public static final boolean SYNTHETIC_VECTORS = new FeatureFlag ("mapping_synthetic_vectors" ).isEnabled ();
851+ public static final Setting <Boolean > INDEX_MAPPING_SOURCE_SYNTHETIC_VECTORS_SETTING = Setting .boolSetting (
852+ "index.mapping.synthetic_vectors" ,
853+ false ,
854+ Property .IndexScope ,
855+ Property .Final
856+ );
857+
850858 private final Index index ;
851859 private final IndexVersion version ;
852860 private final Logger logger ;
@@ -890,7 +898,7 @@ private static String getIgnoreAboveDefaultValue(final Settings settings) {
890898 private final boolean logsdbRouteOnSortFields ;
891899 private final boolean logsdbSortOnHostName ;
892900 private final boolean logsdbAddHostNameField ;
893-
901+ private volatile boolean searchExcludeVectors ;
894902 private volatile long retentionLeaseMillis ;
895903
896904 /**
You can’t perform that action at this time.
0 commit comments