Skip to content

Commit

Permalink
rollback inclusion of qid facets for hubs activeFacetMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Collins committed Mar 25, 2024
1 parent 6dfc5cb commit 91bd4e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/au/org/ala/biocache/util/QueryFormatUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ public Map[] formatSearchQuery(SpatialSearchRequestDTO searchParams, boolean for
addFormattedFq(new String[]{formatted[1]}, searchParams);
}

//add to activeFacetMap fqs
//add to activeFacetMap fqs that are not inserted by a qid, and the q of qids in fqs.
//do not add spatial fields
if (!formatted[1].contains(spatialField + ":")) {
if (originalFqs != null && i < originalFqs.length && !formatted[1].contains(spatialField + ":")) {
Facet facet = new Facet();
facet.setDisplayName(formatted[0]);
String[] fv = fq.split(":");
Expand Down

0 comments on commit 91bd4e0

Please sign in to comment.