code: function constructBasicFilters(filterMap, filters, isProvider, queryParams) {
      Object.keys(filterMap).forEach((key) => {
          const val = filterMap[key];
          const filterList = queryParams[key];
  
          if (!filterList.length || (key === 'provider' && isProvider)) {
              return;
          }
  
          if (val === 'subjects') {
              const matched = [];
              for (const filter of filterList) {
                  matched.push({
                      match: {
                          [val]: filter,
                      },
                  });
              }
  
              filters.push({
                  bool: {
                      should: matched,
                  },
              });
          } else {
              filters.push({
                  terms: {
                      [val]: filterList,
                  },
              });
          }
      });
  
      return filters;
  }
docs: Construct filters for OSF facets (e.g., providers, subjects, etc.)
  
  @method constructBasicFilters
  @param {Object} filterMap - Mapping from OSF params to SHARE params
  @param {List} filters - Filters for query body
  @param {Boolean} isProvider - theme.isProvider
  @param {Object} queryParams - Ember Parachute queryParams
  @return {List} filters - Filters for query body