code: public QueryRule createBoostedDisMaxQueryRuleForTerms(
        List<String> queryTerms, Double boostValue) {
      QueryRule finalDisMaxQuery = createDisMaxQueryRuleForTerms(queryTerms);
      if (boostValue != null && boostValue.intValue() != 0) {
        finalDisMaxQuery.setValue(boostValue);
      }
      return finalDisMaxQuery;
    }
docs: Create a disMaxQueryRule with corresponding boosted value
  
  @return a disMaxQueryRule with boosted value