sennetconsortium / portal-ui

0 stars 1 forks source link

Dataset query misformated #1699

Closed maxsibilla closed 3 weeks ago

maxsibilla commented 3 weeks ago

https://data.sennetconsortium.org/organs/lymph-node

The query to grab the datasets on organ specific pages contains empty must_not fields, causing the query to fail:

{
  "size": 0,
  "query": {
    "bool": {
      "filter": {
        "terms": {
          "origin_samples.organ.keyword": [
            "HT"
          ]
        }
      },
      "must_not": [
        {
          "term": {}
        },
        {
          "term": {}
        }
      ]
    }
  },
  "aggs": {
    "dataset_type": {
      "terms": {
        "field": "dataset_type.keyword",
        "size": 40
      }
    }
  }
}