We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72926e0 commit f7ff485Copy full SHA for f7ff485
server/src/main/java/org/elasticsearch/index/IndexSortConfig.java
@@ -131,6 +131,9 @@ public static FieldSortSpec[] getDefaultSortSpecs(Settings settings) {
131
return new FieldSortSpec[0];
132
}
133
134
+ // Can't use IndexSettings.MODE.get(settings) here because the validation logic for IndexSettings.MODE uses the default value
135
+ // of index.sort.*, which causes infinite recursion (since we're already in the default value provider for those settings).
136
+ // So we need to get the mode while bypassing the validation.
137
String indexMode = settings.get(IndexSettings.MODE.getKey());
138
if (indexMode != null) {
139
indexMode = indexMode.toLowerCase(Locale.ROOT);
0 commit comments