IDigBio API v1 Examples: Difference between revisions

Jump to navigation Jump to search
subtopics for es query types
(subtopics for es query types)
Line 165: Line 165:
</pre>
</pre>


==== Use the Elasticsearch URI Search ====
==== Use Elasticsearch ====


The normalized and indexed record that is stored in Elasticsearch can be retrieved by referencing the iDigBio GUID ("uuid") as the term provided to the query string parameter.
The normalized and indexed record that is stored in Elasticsearch can be retrieved by referencing the iDigBio GUID ("uuid") as the term provided to the query string parameter.


The list of available terms in the iDigBio index is available at [[IDigBio_API#Elasticsearch_-_Records]].
The list of available terms in the iDigBio index is available at [[IDigBio_API#Elasticsearch_-_Records]].
===== Elasticsearch URI Search =====


The following command sends the query as an HTTP <code> GET </code> request:
The following command sends the query as an HTTP <code> GET </code> request:
Line 315: Line 317:
</pre>
</pre>


==== Use the Elasticsearch Request Body Search ====
===== Elasticsearch Request Body Search =====


A JSON query document can be specified on the command-line. Again we are searching for the iDigBio GUID in the "uuid" term.
A JSON query document can be specified on the command-line. Again we are searching for the iDigBio GUID in the "uuid" term.
1,554

edits

Navigation menu