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);
}
}
}
}