Skip to content

Unexpected behaviour with key Organism #80

@will-moore

Description

@will-moore

This query for auto-complete:
https://idr-testing.openmicroscopy.org/searchengine/api/v1/resources/all/searchvalues/?value=mus+musculus&key=Organism

includes this response:

"image": {
  "data": [
    {
      "Key": "Organism",
      "Number of images": 131905,
      "Value": "mus musculus"
    },
    {
      "Key": "Organism",
      "Number of images": 108,
      "Value": "mus musculus x mus spretus"
    }
  ],
  "total_number_of_buckets": 2,
  "total_number_of_image": 132013
},

But if I remove the &key=Organism from the query:
This https://idr-testing.openmicroscopy.org/searchengine/api/v1/resources/all/searchvalues/?value=mus+musculus
returns this for 'image' - (the rest of the response for project and screen is unchanged for this response, although well is also different):

"image": {
    "data": [
      {
        "Key": "Material Type",
        "Number of images": 462,
        "Value": "xenografts of cells from homo sapiens into mus musculus"
      },
      {
        "Key": "hORFeome V5.1 Clone Description",
        "Number of images": 16,
        "Value": "homo sapiens hypothetical protein flj12953 similar to mus musculus d3mm3e"
      },
      {
        "Key": "hORFeome V5.1 Clone Description",
        "Number of images": 16,
        "Value": "homo sapiens similar to riken cdna 3230401m21 [mus musculus], mrna (cdna clone mgc:75507 image:30407723), complete cds."
      }
    ],
    "total_number_of_buckets": 3,
    "total_number_of_image": 494
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions