private void validateHnswIndexParametersRequiresIndexing(SDField field) {
        var index = field.getIndex(field.getName());
        if (index != null && index.getHnswIndexParams().isPresent() && !field.doesIndexing()) {
            fail(schema, field, "A tensor that specifies hnsw index parameters must also specify 'index' in 'indexing'");
        }
    }
Returns whether the given tensor type supports using HNSW index and
nearest neighbor search.
config-model/src/main/java/com/yahoo/schema/processing/TensorFieldProcessor.java