SearchFilterGenerator Class Properties
In this section, the SearchFilterGenerator class property is discussed.
Description
Use this property to boost the score of a keyword without applying a filter. Because a filter is not applied, you may obtain more results, but the score of a keyword is boosted when the keyword match is found.
Example
Local PT_SEARCH:SearchFilterGenerator &fgBoost = create PT_SEARCH:SearchFilterGenerator();
&fgBoost.BoostWithoutFilter = True;
If &fgBoost.MatchAnyReturnTrue() Then
&fg.EqualsString("MANAGER_ID", "FPNIR878");
&fgBoost.BoostFilterScore(0.01);
&fg.ContainsWord("DEPTNAME", "support");
&fgBoost.BoostFilterScore(0.05);
&fgBoost.EndMatchAny();
End-If;
&fgBoost.setBoostModeSum();
&fgBoost.setQueryScoreBoostSum();
&fgBoost.SetQueryFilter(&qry);