In the metadata search result page, if the search term is a species, such as Homo sapiens or Mus musculus, some entry in the json response is from other species. Given some results in Solr, for example, Homo sapiens,
(ontology_annotation_ancestors_labels_t:Homo sapiens OR ontology_annotation_parent_labels_t:Homo sapiens OR ontology_annotation_part_of_rel_labels_t:Homo sapiens OR ontology_annotation_synonyms_t:Homo sapiens OR ontology_annotation_label_t:Homo sapiens) AND experiment_accession:E-GEOD-156455
there is an entry contains Homo sapiens in one of the ontology labels, but from Drosophila melanogaster.
To prevent this error happens, we need to filter the search results on ctw_organism if it is a species search.
i.e. ctw_organism==species_search_term.
In the metadata search result page, if the search term is a species, such as
Homo sapiens
orMus musculus
, some entry in the json response is from other species. Given some results in Solr, for example,Homo sapiens
,there is an entry contains
Homo sapiens
in one of the ontology labels, but fromDrosophila melanogaster
.To prevent this error happens, we need to filter the search results on
ctw_organism
if it is a species search. i.e.ctw_organism==species_search_term
.