com.google.appengine.api.search.GetRequest

Here are the examples of the java api class com.google.appengine.api.search.GetRequest taken from open source projects.

1. MaintenanceTasksServlet#removeAllDocumentsFromIndex()

View license
private void removeAllDocumentsFromIndex() {
    Index index = PlacesHelper.getIndex();
    GetRequest request = GetRequest.newBuilder().setReturningIdsOnly(true).build();
    GetResponse<Document> response = index.getRange(request);
    for (Document document : response.getResults()) {
        index.delete(document.getId());
    }
}