Package org.saidone.restless.sdk
Class GrpcSearchApi
java.lang.Object
org.saidone.restless.sdk.GrpcSearchApi
- All Implemented Interfaces:
org.alfresco.search.handler.SearchApi,org.alfresco.search.handler.SearchApiClient
public final class GrpcSearchApi
extends Object
implements org.alfresco.search.handler.SearchApiClient
SDK search over the shared repository gRPC query service.
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcSearchApi(SearchServiceClient search) Creates the SDK search adapter with default Feign error mapping. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.alfresco.search.model.ResultSetPaging> search(org.alfresco.search.model.SearchRequest request) Searches the workspace store under the client ticket's identity.
-
Constructor Details
-
GrpcSearchApi
Creates the SDK search adapter with default Feign error mapping.- Parameters:
search- shared search service client
-
-
Method Details
-
search
public org.springframework.http.ResponseEntity<org.alfresco.search.model.ResultSetPaging> search(org.alfresco.search.model.SearchRequest request) Searches the workspace store under the client ticket's identity. Supports AFTS and CMIS, bounded pagination and selected node fields. Indexed hits whose nodes were deleted are omitted.- Specified by:
searchin interfaceorg.alfresco.search.handler.SearchApi- Parameters:
request- SDK search request; defaults to AFTS, offset zero and a page size of 100- Returns:
- HTTP 200 with entries, continuation, total when available, and scores when selected
- Throws:
feign.FeignException- for invalid input, unsupported options or mapped repository failures under the default decoder
-