code: public void addIds(Collection<String> ids) {
          if (this.ids == null) {
              this.ids = new ArrayList<>(ids);
          } else {
              this.ids.retainAll(ids);
              if (this.ids.isEmpty()) {
                  LOGGER.warn("No ids remain after addIds. All elements will be filtered out.");
              }
          }
      }
docs: When called the first time, all ids are added to the filter.
  When called two or more times, the provided id's are and'ed with the those provided in the previous lists.
  
  @param ids The ids of the elements that should be searched in this query.