code: public QueryRule createShouldQueryRule(String multiOntologyTermIri) {
      QueryRule shouldQueryRule = new QueryRule(new ArrayList<>());
      shouldQueryRule.setOperator(Operator.SHOULD);
      for (String ontologyTermIri : multiOntologyTermIri.split(COMMA_CHAR)) {
        OntologyTerm ontologyTerm = ontologyService.getOntologyTerm(ontologyTermIri);
        List<String> queryTerms = parseOntologyTermQueries(ontologyTerm);
        Double termFrequency = getBestInverseDocumentFrequency(queryTerms);
        shouldQueryRule
            .getNestedRules()
            .add(createBoostedDisMaxQueryRuleForTerms(queryTerms, termFrequency));
      }
      return shouldQueryRule;
    }
docs: Create a boolean should query for composite tags containing multiple ontology terms
  
  @return return a boolean should queryRule