|
@@ -99,12 +99,10 @@ public class MapperService extends AbstractIndexComponent implements Closeable {
|
|
|
public static final Setting<Boolean> INDEX_MAPPING_SINGLE_TYPE_SETTING;
|
|
|
static {
|
|
|
Function<Settings, String> defValue = settings -> {
|
|
|
- // TODO: uncomment this
|
|
|
- /*boolean singleType = true;
|
|
|
+ boolean singleType = true;
|
|
|
if (settings.getAsVersion(IndexMetaData.SETTING_VERSION_CREATED, null) != null) {
|
|
|
singleType = Version.indexCreated(settings).onOrAfter(Version.V_6_0_0_alpha1_UNRELEASED);
|
|
|
- }*/
|
|
|
- boolean singleType = false;
|
|
|
+ }
|
|
|
return Boolean.valueOf(singleType).toString();
|
|
|
};
|
|
|
INDEX_MAPPING_SINGLE_TYPE_SETTING = Setting.boolSetting("index.mapping.single_type", defValue, Property.IndexScope, Property.Final);
|