We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4967a97 commit 50ac477Copy full SHA for 50ac477
src/main/java/org/elasticsearch/index/fielddata/IndexFieldDataService.java
@@ -113,10 +113,10 @@ public <IFD extends IndexFieldData> IFD getForField(FieldMapper mapper) {
113
}
114
115
public <IFD extends IndexFieldData> IFD getForField(FieldMapper.Names fieldNames, FieldDataType type) {
116
- IndexFieldData fieldData = loadedFieldData.get(type.getType());
+ IndexFieldData fieldData = loadedFieldData.get(fieldNames.indexName());
117
if (fieldData == null) {
118
synchronized (loadedFieldData) {
119
- fieldData = loadedFieldData.get(type.getType());
+ fieldData = loadedFieldData.get(fieldNames.indexName());
120
121
IndexFieldData.Builder builder = null;
122
if (type.getFormat() != null) {
0 commit comments