From 5deffec84fd8ac18c84313237b81894b639d7604 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Sun, 20 Nov 2011 02:32:45 -0800 Subject: [PATCH] read bulk_size/drop_threshold from twitter river configuration as documented --- .../java/org/elasticsearch/river/twitter/TwitterRiver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/river/twitter/src/main/java/org/elasticsearch/river/twitter/TwitterRiver.java b/plugins/river/twitter/src/main/java/org/elasticsearch/river/twitter/TwitterRiver.java index 92bb9c34c19..420eebb584a 100644 --- a/plugins/river/twitter/src/main/java/org/elasticsearch/river/twitter/TwitterRiver.java +++ b/plugins/river/twitter/src/main/java/org/elasticsearch/river/twitter/TwitterRiver.java @@ -217,8 +217,8 @@ public class TwitterRiver extends AbstractRiverComponent implements River { Map indexSettings = (Map) 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";