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 {
|
} 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…
Reference in New Issue