ome / omero_search_engine

App which is used to search metadata (key-value pairs)
GNU General Public License v2.0
1 stars 4 forks source link

Cell Line: HeLa returnstudies doesn't match mapr query #35

Closed will-moore closed 2 years ago

will-moore commented 2 years ago

Using /searchengine//api/v1/resources/submitquery_returnstudies/ with:

{
    "query_details": {
      "and_filters": [{"name": "Cell Line", "value": "Hela", "operator": "equals", "resource": "image"}],
      "or_filters": [],
       "case_sensitive": false
     }
}

I get the following response with 18 studies (but mapr search returns 33 studies: e.g. https://idr.openmicroscopy.org/mapr/cellline/?value=HeLa).

{
  "Error": "none",
  "notice": "",
  "query_details": {
    "and_filters": [
      {
        "name": "Cell Line",
        "operator": "equals",
        "query_type": "keyvalue",
        "resource": "image",
        "value": "Hela"
      }
    ],
    "case_sensitive": false,
    "or_filters": []
  },
  "raw_elasticsearch_query": {
    "query": {
      "bool": {
        "must": [
          {
            "nested": {
              "path": "key_values",
              "query": {
                "bool": {
                  "must": [
                    {
                      "match": {
                        "key_values.value.keyvaluenormalize": "Hela"
                      }
                    },
                    {
                      "match": {
                        "key_values.name.keynamenormalize": "Cell Line"
                      }
                    }
                  ]
                }
              }
            }
          }
        ]
      }
    }
  },
  "resource": "image",
  "results": {
    "results": [
      {
        "Name (IDR number)": "idr0052-walther-condensinmap/experimentB"
      },
      {
        "Name (IDR number)": "idr0052-walther-condensinmap/experimentC"
      },
      {
        "Name (IDR number)": "idr0052-walther-condensinmap/experimentA"
      },
      {
        "Name (IDR number)": "idr0021-lawo-pericentriolarmaterial/experimentA"
      },
      {
        "Name (IDR number)": "idr0041-cai-mitoticatlas/experimentA"
      },
      {
        "Name (IDR number)": "idr0103-coomer-hiv1fusion/experimentA"
      },
      {
        "Name (IDR number)": "idr0071-feldman-crisprko/experimentE"
      },
      {
        "Name (IDR number)": "idr0071-feldman-crisprko/experimentB"
      },
      {
        "Name (IDR number)": "idr0071-feldman-crisprko/experimentF"
      },
      {
        "Name (IDR number)": "idr0012-fuchs-cellmorph/screenA"
      },
      {
        "Name (IDR number)": "idr0013-neumann-mitocheck/screenA"
      },
      {
        "Name (IDR number)": "idr0006-fong-nuclearbodies/screenA"
      },
      {
        "Name (IDR number)": "idr0009-simpson-secretion/screenA"
      },
      {
        "Name (IDR number)": "idr0002-heriche-condensation/screenA"
      },
      {
        "Name (IDR number)": "idr0008-rohn-actinome/screenB"
      },
      {
        "Name (IDR number)": "idr0013-neumann-mitocheck/screenB"
      },
      {
        "Name (IDR number)": "idr0061-wolf-spindlepositioning/screenA"
      },
      {
        "Name (IDR number)": "idr0020-barr-chtog/screenA"
      }
    ]
  },
  "server_query_time": "0.50"
}
will-moore commented 2 years ago

Looks to be fixed, thanks