public static Anchor create(boolean start,boolean end) {
            if (start && end) return Anchor.BOTH;
            if (start) return Anchor.START;
            if (end) return Anchor.END;
            return NONE;
        }
Position constraints of the terms matched by this condition
container-search/src/main/java/com/yahoo/prelude/semantics/rule/Condition.java