public Index getOrCreateIndex(String name) {
        Index idx = getIndex(name);
        if (idx != null) {
            return idx;
        }
        idx = new Index(name);
        addIndex(idx);
        return idx;
    }
Returns the indices of this as a map
container-search/src/main/java/com/yahoo/prelude/SearchDefinition.java