code: public void addFilterQuery(String fieldName, List<String> vals, boolean all, boolean useQuotes) {
  
          if (getFilterQueries() != null) {
              for (String fq : getFilterQueries()) {
                  if (fq.startsWith(fieldName + ":")) {
                      removeFilterQuery(fq);
                  }
              }
          }
          addFilterQuery(createFilterQuery(fieldName, vals, all, useQuotes));
      }
docs: Creates and adds a filter query.<p>
  
  @param fieldName the field name to create a filter query on
  @param vals the values that should match for the given field
  @param all <code>true</code> to combine the given values with 'AND', <code>false</code> for 'OR'
  @param useQuotes <code>true</code> to surround the given values with double quotes, <code>false</code> otherwise