1,554
edits
(subtopics for es query types) |
|||
Line 165: | Line 165: | ||
</pre> | </pre> | ||
==== Use | ==== 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> | ||
==== | ===== 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. |
edits