aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/schema/AttributeUtils.java
blob: 69e7e14b3be1f53e5892cd0cb5be4c2ab09a1424 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.schema;

import com.yahoo.schema.document.SDField;

/**
 * Convenience class for tests that need to set attribute properties on fields.
 */
public class AttributeUtils {

    public static void addAttributeAspect(SDField field) {
        field.parseIndexingScript("{ attribute }");
    }

}