Search in sources :

Example 1 with RankType

use of com.yahoo.searchdefinition.document.RankType in project vespa by vespa-engine.

the class RankTypeResolver method resolve.

public void resolve() {
    RankType rankType = null;
    if (fields.size() > 0) {
        boolean first = true;
        for (SDField field : fields) {
            if (first) {
                rankType = fields.get(0).getRankType();
                first = false;
            } else if (!field.getRankType().equals(rankType)) {
                deployLogger.log(Level.WARNING, "In field '" + field.getName() + "' " + field.getRankType() + " for index '" + indexName + "' conflicts with " + rankType + " defined for the same index in field '" + field.getName() + "'. Using " + rankType + ".");
                field.setRankType(rankType);
            }
        }
    }
}
Also used : SDField(com.yahoo.searchdefinition.document.SDField) RankType(com.yahoo.searchdefinition.document.RankType)

Aggregations

RankType (com.yahoo.searchdefinition.document.RankType)1 SDField (com.yahoo.searchdefinition.document.SDField)1