diff --git a/import-marc.bat b/import-marc.bat
index 711c49ab6ee3a1dc74da3c1d42c1f94a8a5d4446..226d290f0b4597f4e58cc6c41e492ee02f95e850 100644
--- a/import-marc.bat
+++ b/import-marc.bat
@@ -46,7 +46,7 @@ rem # You may also want to add the following:
 rem # -XX:+UseParallelGC
 rem # -XX:+AggressiveOpts
 rem ##################################################
-set INDEX_OPTIONS=-Xms512m -Xmx512m
+set INDEX_OPTIONS=-Xms512m -Xmx512m -DentityExpansionLimit=0
 
 rem ##################################################
 rem # Set SOLRCORE
diff --git a/import-marc.sh b/import-marc.sh
index b4c60af41092fd0ae43e7c3a02e923ed24d74f84..af1834876659c3406350c6cc61fc3338f1ce83ea 100755
--- a/import-marc.sh
+++ b/import-marc.sh
@@ -49,7 +49,7 @@ fi
 # -XX:+UseParallelGC
 # -XX:+AggressiveOpts
 ##################################################
-INDEX_OPTIONS='-Xms512m -Xmx512m'
+INDEX_OPTIONS='-Xms512m -Xmx512m -DentityExpansionLimit=0'
 
 
 ##################################################