public void setMatchAsPath(boolean matchAsPath) {
        ensureNotFrozen();
        this.matchAsPath=matchAsPath;
    }
Returns whether instances of this should be matched as path names. Throws if this is frozen.
container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileType.java