Skip to content

Commit

Permalink
Change for #590 to get Zooma working.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrietteharmse committed Nov 23, 2023
1 parent 6218b09 commit 6a716f1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ public void search(
}
}

solrQuery.setFields("_json");
if (fieldList.contains("score"))
solrQuery.setFields("_json","score");
else
solrQuery.setFields("_json");

if (ontologies != null && !ontologies.isEmpty()) {

Expand Down Expand Up @@ -233,6 +236,8 @@ public void search(
if (fieldList.contains("synonym")) outDoc.put("synonym", JsonHelper.getStrings(json, "synonym"));
if (fieldList.contains("ontology_prefix")) outDoc.put("ontology_prefix", JsonHelper.getString(json, "ontologyPreferredPrefix"));
if (fieldList.contains("subset")) outDoc.put("subset", JsonHelper.getStrings(json, "http://www.geneontology.org/formats/oboInOwl#inSubset"));
if (fieldList.contains("ontology_iri")) outDoc.put("ontology_iri", JsonHelper.getStrings(json, "ontologyIri").get(0));
if (fieldList.contains("score")) outDoc.put("score", res.get("score"));

// Include annotations that were specified with <field>_annotation
boolean anyAnnotations = fieldList.stream()
Expand Down

0 comments on commit 6a716f1

Please sign in to comment.