public static InputType fromSpec(String spec) {
            if ("string".equals(spec)) {
                return new InputType(TensorType.empty, true);
            }
            if ("double".equals(spec)) {
                return new InputType(TensorType.empty, false);
            }
            return new InputType(TensorType.fromSpec(spec), false);
        }
Information about a rank profile

@author bratseth
container-search/src/main/java/com/yahoo/search/schema/RankProfile.java