|
@@ -173,13 +173,6 @@ public final class IndexSettings {
|
|
|
public static final Setting<Integer> MAX_RESCORE_WINDOW_SETTING =
|
|
|
Setting.intSetting("index.max_rescore_window", MAX_RESULT_WINDOW_SETTING, 1,
|
|
|
Property.Dynamic, Property.IndexScope);
|
|
|
- /**
|
|
|
- * Index setting describing the maximum number of filters clauses that can be used
|
|
|
- * in an adjacency_matrix aggregation. The max number of buckets produced by
|
|
|
- * N filters is (N*N)/2 so a limit of 100 filters is imposed by default.
|
|
|
- */
|
|
|
- public static final Setting<Integer> MAX_ADJACENCY_MATRIX_FILTERS_SETTING =
|
|
|
- Setting.intSetting("index.max_adjacency_matrix_filters", 100, 2, Property.Dynamic, Property.IndexScope);
|
|
|
public static final TimeValue DEFAULT_REFRESH_INTERVAL = new TimeValue(1, TimeUnit.SECONDS);
|
|
|
public static final Setting<TimeValue> INDEX_REFRESH_INTERVAL_SETTING =
|
|
|
Setting.timeSetting("index.refresh_interval", DEFAULT_REFRESH_INTERVAL, new TimeValue(-1, TimeUnit.MILLISECONDS),
|
|
@@ -373,7 +366,6 @@ public final class IndexSettings {
|
|
|
private volatile boolean warmerEnabled;
|
|
|
private volatile int maxResultWindow;
|
|
|
private volatile int maxInnerResultWindow;
|
|
|
- private volatile int maxAdjacencyMatrixFilters;
|
|
|
private volatile int maxRescoreWindow;
|
|
|
private volatile int maxDocvalueFields;
|
|
|
private volatile int maxScriptFields;
|
|
@@ -488,7 +480,6 @@ public final class IndexSettings {
|
|
|
warmerEnabled = scopedSettings.get(INDEX_WARMER_ENABLED_SETTING);
|
|
|
maxResultWindow = scopedSettings.get(MAX_RESULT_WINDOW_SETTING);
|
|
|
maxInnerResultWindow = scopedSettings.get(MAX_INNER_RESULT_WINDOW_SETTING);
|
|
|
- maxAdjacencyMatrixFilters = scopedSettings.get(MAX_ADJACENCY_MATRIX_FILTERS_SETTING);
|
|
|
maxRescoreWindow = scopedSettings.get(MAX_RESCORE_WINDOW_SETTING);
|
|
|
maxDocvalueFields = scopedSettings.get(MAX_DOCVALUE_FIELDS_SEARCH_SETTING);
|
|
|
maxScriptFields = scopedSettings.get(MAX_SCRIPT_FIELDS_SETTING);
|
|
@@ -530,7 +521,6 @@ public final class IndexSettings {
|
|
|
scopedSettings.addSettingsUpdateConsumer(INDEX_TRANSLOG_SYNC_INTERVAL_SETTING, this::setTranslogSyncInterval);
|
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_RESULT_WINDOW_SETTING, this::setMaxResultWindow);
|
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_INNER_RESULT_WINDOW_SETTING, this::setMaxInnerResultWindow);
|
|
|
- scopedSettings.addSettingsUpdateConsumer(MAX_ADJACENCY_MATRIX_FILTERS_SETTING, this::setMaxAdjacencyMatrixFilters);
|
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_RESCORE_WINDOW_SETTING, this::setMaxRescoreWindow);
|
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_DOCVALUE_FIELDS_SEARCH_SETTING, this::setMaxDocvalueFields);
|
|
|
scopedSettings.addSettingsUpdateConsumer(MAX_SCRIPT_FIELDS_SETTING, this::setMaxScriptFields);
|
|
@@ -821,17 +811,6 @@ public final class IndexSettings {
|
|
|
this.maxInnerResultWindow = maxInnerResultWindow;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Returns the max number of filters in adjacency_matrix aggregation search requests
|
|
|
- */
|
|
|
- public int getMaxAdjacencyMatrixFilters() {
|
|
|
- return this.maxAdjacencyMatrixFilters;
|
|
|
- }
|
|
|
-
|
|
|
- private void setMaxAdjacencyMatrixFilters(int maxAdjacencyFilters) {
|
|
|
- this.maxAdjacencyMatrixFilters = maxAdjacencyFilters;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Returns the maximum rescore window for search requests.
|
|
|
*/
|