Package org.gbif.api.service.common
Interface SuggestService<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
public interface SuggestService<T,P extends Enum<?> & SearchParameter,R extends SearchRequest<P>>
Generic search interface for a suggest/autocomplete service.
This marker interface should be extended by other interfaces that support this functionality.
-
Method Summary
-
Method Details
-
suggest
Issues a SearchRequest for a suggest and retrieves the list of matches. The actual result information will contain a list elements of type T.- Parameters:
suggestRequest
- the input object to be used for performing the operation.
-