private void checkRankModifierRankType(Schema schema) {
        for (SDField field : schema.allConcreteFields()) {
            if (field.getLiteralBoost() > -1) continue; // Let explicit value take precedence
            if (field.getRanking().isLiteral())
                field.setLiteralBoost(100);
        }
    }
Checks if literal boost is given using rank: , and set the actual literal boost accordingly.
config-model/src/main/java/com/yahoo/schema/processing/LiteralBoost.java