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