Package org.gbif.api.service.common
Interface SearchService<T,P extends Enum<?> & SearchParameter,R extends SearchRequest<P>>
- Type Parameters:
T
- the type of returned resultsP
- the supported search parameter enumerationR
- the supported search request type. For faceted searches this needs to extendFacetedSearchRequest
- All Known Subinterfaces:
DatasetSearchService
,NameUsageSearchService
,OccurrenceSearchService
public interface SearchService<T,P extends Enum<?> & SearchParameter,R extends SearchRequest<P>>
Parameterized generic search interface that supports pagination.
The generic
SearchResponse
and SearchRequest
are used to provide the basic search parameters
in a request and allow facets for results.
This marker interface should be extended by other interfaces that support full text, faceted and paginated search.-
Method Summary
Modifier and TypeMethodDescriptionIssues a SearchRequest and retrieves a response resulting of the search operation.
-
Method Details
-
search
Issues a SearchRequest and retrieves a response resulting of the search operation. The actual result information will contain a list elements of type T.- Parameters:
searchRequest
- the searchRequest that contains the search parameters- Returns:
- the SearchResponse resulting of the search operation
-