From 50ac477d92998b4b134ed61a3b47a56c9df2bf33 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 23 Jan 2013 23:53:20 +0100 Subject: [PATCH] Fixed small bug. Index name should be used to lookup entry. --- .../elasticsearch/index/fielddata/IndexFieldDataService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/fielddata/IndexFieldDataService.java b/src/main/java/org/elasticsearch/index/fielddata/IndexFieldDataService.java index 1977aa531dd..e4ba0b22b48 100644 --- a/src/main/java/org/elasticsearch/index/fielddata/IndexFieldDataService.java +++ b/src/main/java/org/elasticsearch/index/fielddata/IndexFieldDataService.java @@ -113,10 +113,10 @@ public class IndexFieldDataService extends AbstractIndexComponent { } public IFD getForField(FieldMapper.Names fieldNames, FieldDataType type) { - IndexFieldData fieldData = loadedFieldData.get(type.getType()); + IndexFieldData fieldData = loadedFieldData.get(fieldNames.indexName()); if (fieldData == null) { synchronized (loadedFieldData) { - fieldData = loadedFieldData.get(type.getType()); + fieldData = loadedFieldData.get(fieldNames.indexName()); if (fieldData == null) { IndexFieldData.Builder builder = null; if (type.getFormat() != null) {