Package com.flaptor.hounder.crawler.modules.boost

Examples of com.flaptor.hounder.crawler.modules.boost.ABoostCondition


        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;
View Full Code Here

TOP

Related Classes of com.flaptor.hounder.crawler.modules.boost.ABoostCondition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.