Search in sources :

Example 1 with GetRequest

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"));
}
Also used : GetRequest(core.framework.search.GetRequest)

Example 2 with GetRequest

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"));
}
Also used : GetRequest(core.framework.search.GetRequest)

Example 3 with GetRequest

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"));
}
Also used : GetRequest(core.framework.search.GetRequest)

Aggregations

GetRequest (core.framework.search.GetRequest)3