1,554
edits
(add more content) |
|||
Line 211: | Line 211: | ||
== Searching iDigBio == | == Searching iDigBio == | ||
At this time the recommended method for searching iDigBio is to use the Portal search, not the API. The portal also provides bulk download capabilities for aquiring larger sets of data. See: https://www.idigbio.org/portal | |||
The iDigBio API does not currently (yet!) provide query/search capabilities. However, the back-end Elasticsearch interface is public-facing and available for use by advanced users and programmers. This is the same interface that is used by the iDigBio Portal search. | |||
'''Direct queries to the iDigBio Elasticsearch service should be considered an Advanced operation.''' | '''Direct queries to the iDigBio Elasticsearch service should be considered an Advanced operation.''' | ||
An overview of Elasticsearch: http://www.elasticsearch.org/overview/elasticsearch/ | |||
The search | The iDigBio search index provides two document types to query on: Records and Media Records. Search results are returned as JSON-formatted documents. Each type can be queried through the following respective URLs: | ||
https://search.idigbio.org/ | {| class="wikitable" | ||
!Query Type | |||
!Search URL | |||
|- | |||
|Records | |||
|https://search.idigbio.org/idigbio/records/_search | |||
|- | |||
|Media Records | |||
|https://search.idigbio.org/idigbio/mediarecords/_search | |||
|} | |||
See the [[iDigBio API Examples]] page for Elasticsearch examples that are specific to iDigBio. | |||
=== Elasticsearch - Records === | |||
Useful parameters for '''Records'' queries to Elasticsearch: | |||
<pre> | <pre> | ||
Line 289: | Line 294: | ||
TODO: include something about hasImage, scientificname | TODO: include something about hasImage, scientificname | ||
=== Elasticsearch | === Elasticsearch - Media Records === | ||
https://search.idigbio.org/idigbio/mediarecords/_search | https://search.idigbio.org/idigbio/mediarecords/_search | ||
There are no useful parameters for '''Media Records''' queries using Elasticsearch at this time. | |||
Sample query: | Sample query: |
edits