opentargets / issues

Issue tracker for Open Targets Platform and Open Targets Genetics Portal
https://platform.opentargets.org https://genetics.opentargets.org
Apache License 2.0
12 stars 2 forks source link

Implement facet search api #3276

Closed jdhayhurst closed 2 months ago

jdhayhurst commented 2 months ago

As a user I want to be able to search for facets. This ticket is about exposing the opensearch index to the user to enable a fuzzy text search of facet label via a new API endpoint.

The API endpoint will accept a query string and a context (target or disease). It will return search hits. The hits will include the facet label, the target or disease ids, the facet category and the id of the facet label.

Background

See https://github.com/opentargets/issues/issues/3239

Tasks

Acceptance tests

How do we know the task is complete?

  1. The API has an endpoint all