Config mdlConfig = getModuleConfig();
String conditionString = mdlConfig.getString("boost.condition");
if ("url".equals(conditionString)) conditionType = ABoostCondition.Type.UrlPattern;
if ("keyword".equals(conditionString)) conditionType = ABoostCondition.Type.Keyword;
if ("urlandkeyword".equals(conditionString)) conditionType = ABoostCondition.Type.UrlPatternAndKeyword;
ABoostCondition condition = ABoostCondition.getBoostCondition(mdlConfig,conditionType);
ABoostMethod.Type methodType = null;
String methodString = mdlConfig.getString("boost.method");
if ("doc".equals(methodString)) methodType = ABoostMethod.Type.Doc;
if ("field".equals(methodString)) methodType = ABoostMethod.Type.Field;