read bulk_size/drop_threshold from twitter river configuration as documented
This commit is contained in:
parent
bf5d722748
commit
5deffec84f
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue