Correctly deal with aliases when retrieving lucene FieldType
This commit is contained in:
parent
6c03d97419
commit
c6acc7c976
|
@ -203,6 +203,9 @@ public class MapperService extends AbstractIndexComponent implements Closeable {
|
|||
if (mapper == null) {
|
||||
return null;
|
||||
}
|
||||
if (mapper instanceof FieldAliasMapper) {
|
||||
return getLuceneFieldType(((FieldAliasMapper)mapper).path());
|
||||
}
|
||||
if (mapper instanceof FieldMapper == false) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue