You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: search-parts/src/dataSources/MicrosoftSearchDataSource.ts
+9-8
Original file line number
Diff line number
Diff line change
@@ -755,16 +755,17 @@ export class MicrosoftSearchDataSource extends BaseDataSource<IMicrosoftSearchDa
755
755
756
756
// Build aggregation filters
757
757
if(dataContext.filters.selectedFilters.length>0){
758
-
759
-
// Make sure, if we have multiple filters, at least two filters have values to avoid apply an operator ('or','and') on only one condition failing the query.
// Make sure, if we have multiple filters, at least two filters have values to avoid apply an operator ('or','and') on only one condition failing the query.
Copy file name to clipboardexpand all lines: search-parts/src/dataSources/SharePointSearchDataSource.ts
+2-2
Original file line number
Diff line number
Diff line change
@@ -896,13 +896,13 @@ export class SharePointSearchDataSource extends BaseDataSource<ISharePointSearch
896
896
897
897
// Make sure, if we have multiple filters, at least two filters have values to avoid apply an operator ('or','and') on only one condition failing the query.
Copy file name to clipboardexpand all lines: search-parts/src/helpers/DataFilterHelper.ts
+56-4
Original file line number
Diff line number
Diff line change
@@ -81,19 +81,72 @@ export class DataFilterHelper {
81
81
/**
82
82
* Build the refinement condition in FQL format
83
83
* @param selectedFilters The selected filter array
84
-
* @param filtersConfiguration The current filters configuration
85
84
* @param moment The moment.js instance to resolve dates
86
85
* @param encodeTokens If true, encodes the taxonomy refinement tokens in UTF-8 to work with GET requests. Javascript encodes natively in UTF-16 by default.
returnrefinementQueryConditions.join(" OR ");// only used when building aggregation with OR between filters
133
+
}
134
+
135
+
/**
136
+
* Build the refinement condition in FQL format
137
+
* @param selectedFilters The selected filter array
138
+
* @param moment The moment.js instance to resolve dates
139
+
* @param encodeTokens If true, encodes the taxonomy refinement tokens in UTF-8 to work with GET requests. Javascript encodes natively in UTF-16 by default.
0 commit comments