use of com.yahoo.search.query.profile.types.TensorFieldType in project vespa by vespa-engine.
the class RankProfileTypeSettingsProcessor method processFieldDescription.
private void processFieldDescription(FieldDescription fieldDescription) {
String fieldName = fieldDescription.getName();
FieldType fieldType = fieldDescription.getType();
if (fieldType instanceof TensorFieldType) {
TensorFieldType tensorFieldType = (TensorFieldType) fieldType;
FeatureNames.argumentOf(fieldName).ifPresent(argument -> addQueryFeatureTypeToRankProfiles(argument, tensorFieldType.asTensorType().toString()));
}
}
Aggregations