Interface SearchService<T,P extends Enum<?> & SearchParameter,R extends SearchRequest<P>>

Type Parameters:
T - the type of returned results
P - the supported search parameter enumeration
R - the supported search request type. For faceted searches this needs to extend FacetedSearchRequest
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 Type
    Method
    Description
    search(R searchRequest)
    Issues a SearchRequest and retrieves a response resulting of the search operation.
  • Method Details

    • search

      SearchResponse<T,P> search(R searchRequest)
      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