mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
parent/child field data is an exception to the rule, because it is based on two fields...
This commit is contained in:
parent
2d775c34c9
commit
948da82f90
@ -131,7 +131,15 @@ public class ParentChildIndexFieldData extends AbstractIndexFieldData<AtomicPare
|
||||
}
|
||||
};
|
||||
} else {
|
||||
return super.load(context);
|
||||
try {
|
||||
return cache.load(context, this);
|
||||
} catch (Throwable e) {
|
||||
if (e instanceof ElasticsearchException) {
|
||||
throw (ElasticsearchException) e;
|
||||
} else {
|
||||
throw new ElasticsearchException(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user