My filter on items properties does not return the expected results

Currently, an HDA query, filtering on item properties, fails if the ‘lt’ or ‘gt’ operators are used instead of the ‘eq’ operator.

For example, the following filter to have data with a cloud coverage less than 30%:

requests.post("https://hda.data.destination-earth.eu/stac/search", headers=auth_headers, json={
    "collections": ["EO.ESA.DAT.SENTINEL-2.MSI.L2A"],
    "datetime": "2016-01-01T00:00:00Z/2017-02-01T00:00:00Z",
    "bbox": [12.17 ,42.1,
              12.3,42.17],
    "query": {
        "eo:cloud_cover": {
            "lt": 30
        }
    }
})

fails with an error message like this:

{
 "description": "ValidationError: 1 error(s). query: operator \"lt\" is not supported for property \"eo:cloud_cover\""
}

To request data with a cloud coverage less or equal to 30% you need to use the “eq” operator as in the following example:

requests.post("https://hda.data.destination-earth.eu/stac/search", headers=auth_headers, json={
  "collections": ["EO.ESA.DAT.SENTINEL-2.MSI.L2A"],
  "datetime": "2016-01-01T00:00:00Z/2017-02-01T00:00:00Z",
  "bbox": [12.17 ,42.1,
            12.3,42.17],
  "query": {
      "eo:cloud_cover": {
          "eq": 30
      }
  }
})