LogoLogo
  • API Service Gateway Overview
    • Introduction
    • Getting Started with the APIs
    • Using your API key
    • API Rate Limiting
    • API Service Gateway Responses
  • Elasticsearch Metadata Services
    • Resource Information Network (RIN) Services
      • Research Resource Identifiers
      • The RRID Resolver
      • Searching RIN Indices
      • Basic RIN Search Examples
      • RIN Elaticsearch JSON Data Model
      • Download Larger Datasets
    • SPARC Datasets
      • Searching SPARC Dataset Indices
      • Basic SPARC Search Examples
      • SPARC Dataset Elasticsearch JSON Data Model
  • Terminology Services
    • InterLex
      • Searching InterLex
      • Basic Interlex Search Example
      • Bulk Add
      • Bulk Update
Powered by GitBook
On this page
  • Introduction
  • Access to the metadata APIs
  • Elasticsearch Pass-Through
  • Elasticsearch Pass-Through
  • SPARC metadata indices
Edit on GitHub
Export as PDF
  1. Elasticsearch Metadata Services
  2. SPARC Datasets

Searching SPARC Dataset Indices

Introduction

The SPARC metadata APIs are provided via an ElasticSearch endpoint.

Access to the metadata APIs

Access to the metadata API is provided via an Elasticsearch pass-through.

Elasticsearch Pass-Through

POST https://api.scicrunch.io/elastic/v1/SPARC_Algolia_pr/_search

The pass-through is accessible at https://scicrunch.org/api/1/elastic. Similar to standard Elasticsearch APIs you must then supply an index and an action. In this case the SPARC Portal Dataset metadata (SPARC_Algolia_pr) and the search command (_search). Documentation on the Elasticsearch Search API is available at https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search.html

Path Parameters

Name
Type
Description

index*

String

For SPARC datasets this is SPARC_Algolia_pr

Headers

Name
Type
Description

apikey*

String

Your API key to access the services

Request Body

Name
Type
Description

data

String

JSON query body

Elasticsearch Pass-Through

GET https://api.scicrunch.io/elastic/v1/SPARC_Algolia_pr/_search

The pass-through is accessible at https://scicrunch.org/api/1/elastic. Similar to standard Elasticsearch APIs you must then supply an index and an action. In this case the SPARC Portal Dataset metadata (SPARC_Algolia_pr) and the search query parameter. Documentation on the Elasticsearch Search API is available at https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search.html

Path Parameters

Name
Type
Description

index*

String

For SPARC datasets this is SPARC_Algolia_pr

Query Parameters

Name
Type
Description

q

String

Search string

Headers

Name
Type
Description

apikey*

String

Your API key to access the services

SPARC metadata indices

SPARC_Algolia_pr

Production index for SPARC datasets

Using aliases will allow for testing on updates and enhancements to the metadata index structure. If needed additional aliases can be constructed for specialized testing.

PreviousSPARC DatasetsNextBasic SPARC Search Examples

Last updated 1 year ago

Management of indices is accomplished via . Three index aliases are provided:

Elasticsearch aliases