throw new IllegalStateException(e);
}
return 0;
}
public MessageResult getMessage(String index, String id) throws IOException, APIException {
final GetMessageResponse r = api.path(routes.MessageResource().search(index, id), GetMessageResponse.class)
.execute();
return new MessageResult(r.message, r.index, Maps.<String, List<HighlightRange>>newHashMap(), fieldMapper);
}