@Override
public TermsResult call() throws Exception {
try {
return searches.terms("source", 5000, "*", new RelativeRange(range));
} catch (IndexHelper.InvalidRangeFormatException e) {
throw new ExecutionException(e);
} catch (InvalidRangeParametersException e) {
throw new ExecutionException(e);
}
}
});
} catch (ExecutionException e) {
if (e.getCause() instanceof InvalidRangeParametersException) {