add a twitter indexer

This commit is contained in:
kimchy 2010-09-20 23:06:59 +02:00
parent 94a77b69d6
commit 5f574013fd
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class TwitterIndexer extends AbstractIndexerComponent implements Indexer
if (settings.settings().containsKey("index")) { if (settings.settings().containsKey("index")) {
Map<String, Object> indexSettings = (Map<String, Object>) settings.settings().get("index"); Map<String, Object> indexSettings = (Map<String, Object>) settings.settings().get("index");
indexName = XContentMapValues.nodeStringValue(indexSettings.get("index"), indexerName.name()); indexName = XContentMapValues.nodeStringValue(indexSettings.get("index"), indexerName.name());
typeName = XContentMapValues.nodeStringValue(indexSettings.get("type"), indexerName.name()); typeName = XContentMapValues.nodeStringValue(indexSettings.get("type"), "status");
} else { } else {
indexName = indexerName.name(); indexName = indexerName.name();
typeName = "status"; typeName = "status";