Search in sources :

Example 1 with TensorFieldType

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()));
    }
}
Also used : TensorFieldType(com.yahoo.search.query.profile.types.TensorFieldType) FieldType(com.yahoo.search.query.profile.types.FieldType) TensorFieldType(com.yahoo.search.query.profile.types.TensorFieldType)

Aggregations

FieldType (com.yahoo.search.query.profile.types.FieldType)1 TensorFieldType (com.yahoo.search.query.profile.types.TensorFieldType)1