@Override
    public boolean isIndex() {
        if (schema == null || fieldNames.isEmpty()) return false;
        return randomFieldInThis().isIndex();
    }
Returns whether this field is index(es), i.e. does indexing: index.
container-search/src/main/java/com/yahoo/search/schema/FieldSet.java