File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/main/java/au/org/ala/biocache/util Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,14 @@ public class QueryFormatUtils {
90
90
@ Value ("${solr.circle.segments:18}" )
91
91
int solrCircleSegments = 18 ;
92
92
93
+ /**
94
+ * When facet tagging/excluding is enabled, this flag determines whether to combine
95
+ * multiple excluded facet fields into each facet {!ex} tag.
96
+ * @see au.org.ala.biocache.util.QueryFormatUtils#applyFilterTagging(au.org.ala.biocache.dto.SpatialSearchRequestDTO)
97
+ */
98
+ @ Value ("${facets.combineExcludedFields:false}" )
99
+ boolean combineExcludedFacetFields = false ;
100
+
93
101
/**
94
102
* This is appended to the query displayString when SpatialSearchRequestParams.wkt is used.
95
103
*/
@@ -230,7 +238,7 @@ private void applyFilterTagging(SpatialSearchRequestDTO searchParams) {
230
238
// Add the excluded fields to the facetPivotList || facetList
231
239
for (String f : searchParams .getFacets ()) {
232
240
if (excludedFields .contains (f )) {
233
- String prefix = "{!ex=" + String .join ("," , excludedFields ) + "}" ;
241
+ String prefix = combineExcludedFacetFields ? "{!ex=" + String .join ("," , excludedFields ) + "}" : "{!ex=" + f + "}" ;
234
242
facetPivotList .add (prefix + f );
235
243
} else {
236
244
facetList .add (f );
You can’t perform that action at this time.
0 commit comments