SOLR-3142: don't auto-optimize in dataimports

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1291115 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-02-20 01:45:09 +00:00
parent 10a35f85e5
commit d4deb86459
2 changed files with 8 additions and 2 deletions

View File

@ -19,6 +19,12 @@ New Features
* SOLR-1499: Added SolrEntityProcessor that imports data from another Solr core or instance based on a specified query.
(Lance Norskog, Erik Hatcher, Pulkit Singhal, Ahmet Arslan, Luca Cavanna, Martijn van Groningen)
Changes in Runtime Behavior
----------------------
* SOLR-3142: Imports no longer default optimize to true, instead false. If you want to force all segments to be merged
into one, you can specify this parameter yourself. NOTE: this can be very expensive operation and usually
does not make sense for delta-imports. (Robert MUir)
================== 3.5.0 ==================
Bug Fixes

View File

@ -523,7 +523,7 @@ public class DataImporter {
public boolean commit = true;
public boolean optimize = true;
public boolean optimize = false;
public int start = 0;
@ -571,7 +571,7 @@ public class DataImporter {
if (requestParams.containsKey("clean"))
clean = StrUtils.parseBool((String) requestParams.get("clean"),true);
if (requestParams.containsKey("optimize")) {
optimize = StrUtils.parseBool((String) requestParams.get("optimize"),true);
optimize = StrUtils.parseBool((String) requestParams.get("optimize"),false);
if (optimize)
commit = true;
}