use of core.framework.search.GetRequest in project core-ng-project by neowu.
the class ActionServiceTest method traceDocument.
private TraceDocument traceDocument(LocalDate now, String id) {
GetRequest request = new GetRequest();
request.index = IndexName.name("trace", now);
request.id = id;
return traceType.get(request).orElseThrow(() -> new Error("not found"));
}
use of core.framework.search.GetRequest in project core-ng-project by neowu.
the class StatServiceTest method statDocument.
private StatDocument statDocument(LocalDate now, String id) {
GetRequest request = new GetRequest();
request.index = IndexName.name("stat", now);
request.id = id;
return statType.get(request).orElseThrow(() -> new Error("not found"));
}
use of core.framework.search.GetRequest in project core-ng-project by neowu.
the class ActionServiceTest method actionDocument.
private ActionDocument actionDocument(LocalDate now, String id) {
GetRequest request = new GetRequest();
request.index = IndexName.name("action", now);
request.id = id;
return actionType.get(request).orElseThrow(() -> new Error("not found"));
}
Aggregations