get:
  tags:
    - All Resources
    - Search
  summary: >-
    Search for an Artist by name
  operationId: search.get
  description: >-
    Resource route for searching data via Elasticsearch.
    Currently searching for `Artists` by `full_name`, `spotify_artist_id` is supported.
    
    
    By default query is using `full_name` field. To use `spotify_artist_id` specify field in query like this: `query=spotify_artist_id:*10FMmSqETUxlsvw88rigHV`
  security:
    - bearerAuth: []
  parameters:
    - $ref: '../parameters/search_query.yaml'
    - $ref: '../parameters/search_index.yaml'
    - $ref: '../parameters/limit.yaml'
    - $ref: '../parameters/page.yaml'
  responses:
    200:
      $ref: '../responses/ArtistsResponse.yaml'
    400:
      $ref: '../responses/InvalidInput.yaml'
    401:
      $ref: '../responses/Unauthorized.yaml'
    404:
      $ref: '../responses/NotFoundError.yaml'
    500:
      $ref: '../responses/InternalError.yaml'