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

Unable to search beyond the first n number of search results #3227

Closed prashantuniyal02 closed 6 months ago

prashantuniyal02 commented 7 months ago

Describe the bug Unable to search beyond the first n number of search results

Observed behaviour Unable to search beyond the first 110 search results

To Reproduce Steps to reproduce the behaviour:

  1. Go to the platform home page or any other page and click on the search icon
  2. Click on the search
  3. Type chembl and press enter
  4. Scroll down to the 12th search page
  5. See error

Additional context image

jdhayhurst commented 7 months ago

I found this document in the search_drug index, which I believe is causing an error:

{
        "_index" : "search_drug",
        "_id" : "ltlHEIwBM4R3vWma6zpz",
        "_score" : 2.3194804,
        "_source" : {
          "prefixes" : [ "CHEMBL3707210" ],
          "keywords" : [ "CHEMBL3707210", "DB11342" ],
          "multiplier" : 0.01,
          "name" : "CHEMBL3707210",
          "id" : "CHEMBL3707210",
          "ngrams" : [ "CHEMBL3707210" ],
          "category" : [ null ],
          "entity" : "drug"
        }

The category is modelled in the API as category: Seq[String] so this violates it, and ultimately the json can not be returned to the frontend. Should this be nullable, should there be a default value or was there an ETL error?