Skip to content

Commit

Permalink
parent/child field data is an exception to the rule, because it is ba…
Browse files Browse the repository at this point in the history
…sed on two fields...
  • Loading branch information
martijnvg committed Jul 23, 2015
1 parent 2d775c3 commit 948da82
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,15 @@ public void close() throws ElasticsearchException {
}
};
} 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);
}
}
}
}

Expand Down

0 comments on commit 948da82

Please sign in to comment.