Package org.gbif.api.service.occurrence
Interface OccurrenceSearchService
- All Superinterfaces:
SearchService<Occurrence,
OccurrenceSearchParameter, OccurrenceSearchRequest>
public interface OccurrenceSearchService
extends SearchService<Occurrence,OccurrenceSearchParameter,OccurrenceSearchRequest>
Interface that provides search operations over Occurrences.
As the occurrence Solr index doesn't store values we use the full Occurrence class for search responses
as we need to do lookups by key anyways.
-
Method Summary
Modifier and TypeMethodDescriptionlong
countRecords
(Predicate predicate) Get the record count from a predicate search.search
(OccurrencePredicateSearchRequest request) Occurrence search implementation that uses a predicate instead of request parameters.suggestCatalogNumbers
(@Min(1L) String prefix, Integer limit) Searches catalog numbers which start with the input prefix.suggestCollectionCodes
(@Min(1L) String prefix, Integer limit) Searches collection codes which start with the input prefix.suggestDatasetName
(@Min(1L) String prefix, Integer limit) Searches dataset names which start with the input prefix.suggestEventId
(@Min(1L) String prefix, Integer limit) Searches DwC eventIds which start with the input prefix.suggestIdentifiedBy
(@Min(1L) String prefix, Integer limit) Searches collector names (dwc:identifiedBy) which start with the input prefix.suggestInstitutionCodes
(@Min(1L) String prefix, Integer limit) Searches institution codes which start with the input prefix.suggestLocalities
(@Min(1L) String prefix, Integer limit) Searches DwC localities which start with the input prefix.suggestOccurrenceIds
(@Min(1L) String prefix, Integer limit) Searches DwC occurrenceIds which start with the input prefix.suggestOrganismIds
(@Min(1L) String prefix, Integer limit) Searches DwC organismsIds which start with the input prefix.suggestOtherCatalogNumbers
(@Min(1L) String prefix, Integer limit) Searches other catalog numbers which start with the input prefix.suggestParentEventId
(@Min(1L) String prefix, Integer limit) Searches DwC parentEventIds which start with the input prefix.suggestRecordedBy
(@Min(1L) String prefix, Integer limit) Searches collector names (dwc:recordedBy) which start with the input prefix.suggestRecordNumbers
(@Min(1L) String prefix, Integer limit) Searches record numbers which start with the input prefix.suggestSamplingProtocol
(@Min(1L) String prefix, Integer limit) Searches DwC sampling protocols which start with the input prefix.suggestStateProvinces
(@Min(1L) String prefix, Integer limit) Searches DwC state/provinces which start with the input prefix.suggestWaterBodies
(@Min(1L) String prefix, Integer limit) Searches DwC water bodies which start with the input prefix.Methods inherited from interface org.gbif.api.service.common.SearchService
search
-
Method Details
-
search
SearchResponse<Occurrence,OccurrenceSearchParameter> search(OccurrencePredicateSearchRequest request) Occurrence search implementation that uses a predicate instead of request parameters. -
countRecords
Get the record count from a predicate search. -
suggestCatalogNumbers
Searches catalog numbers which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of catalog numbers
-
suggestCollectionCodes
Searches collection codes which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of collection names
-
suggestRecordedBy
Searches collector names (dwc:recordedBy) which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of collector names
-
suggestIdentifiedBy
Searches collector names (dwc:identifiedBy) which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of collector names
-
suggestRecordNumbers
Searches record numbers which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of collector names
-
suggestInstitutionCodes
Searches institution codes which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of institution codes
-
suggestOccurrenceIds
Searches DwC occurrenceIds which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of occurrenceIds
-
suggestOrganismIds
Searches DwC organismsIds which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of organismIds
-
suggestLocalities
Searches DwC localities which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of localities
-
suggestWaterBodies
Searches DwC water bodies which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of water bodies
-
suggestStateProvinces
Searches DwC state/provinces which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of state provinces
-
suggestSamplingProtocol
Searches DwC sampling protocols which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of state provinces
-
suggestEventId
Searches DwC eventIds which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of state provinces
-
suggestParentEventId
Searches DwC parentEventIds which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of state provinces
-
suggestOtherCatalogNumbers
Searches other catalog numbers which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of other catalog numbers
-
suggestDatasetName
Searches dataset names which start with the input prefix. If the limit is set to a number less than 0, then no maximum limit is enforced. If limit contains a null value, a default value is set by the service implementation.- Parameters:
prefix
- search patternlimit
- maximum number of results to return- Returns:
- of dataset names
-