Correctly deal with aliases when retrieving lucene FieldType

This commit is contained in:
Alan Woodward 2020-06-16 18:06:15 +01:00
parent 6c03d97419
commit c6acc7c976
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ public class MapperService extends AbstractIndexComponent implements Closeable {
if (mapper == null) { if (mapper == null) {
return null; return null;
} }
if (mapper instanceof FieldAliasMapper) {
return getLuceneFieldType(((FieldAliasMapper)mapper).path());
}
if (mapper instanceof FieldMapper == false) { if (mapper instanceof FieldMapper == false) {
return null; return null;
} }