read bulk_size/drop_threshold from twitter river configuration as documented

This commit is contained in:
Aman Gupta 2011-11-20 02:32:45 -08:00 committed by Shay Banon
parent bf5d722748
commit 5deffec84f
1 changed files with 2 additions and 2 deletions

View File

@ -217,8 +217,8 @@ public class TwitterRiver extends AbstractRiverComponent implements River {
Map<String, Object> indexSettings = (Map<String, Object>) settings.settings().get("index");
indexName = XContentMapValues.nodeStringValue(indexSettings.get("index"), riverName.name());
typeName = XContentMapValues.nodeStringValue(indexSettings.get("type"), "status");
this.bulkSize = XContentMapValues.nodeIntegerValue(settings.settings().get("bulk_size"), 100);
this.dropThreshold = XContentMapValues.nodeIntegerValue(settings.settings().get("drop_threshold"), 10);
this.bulkSize = XContentMapValues.nodeIntegerValue(indexSettings.get("bulk_size"), 100);
this.dropThreshold = XContentMapValues.nodeIntegerValue(indexSettings.get("drop_threshold"), 10);
} else {
indexName = riverName.name();
typeName = "status";