private IntItem numberGreater() {
        int position = tokens.getPosition();
        IntItem item = null;

        try {
            Token initial = tokens.next();
            if (initial.kind != GREATER) return null;

            boolean negative = tokens.skipNoIgnore(MINUS);
            if ( ! tokens.currentIs(NUMBER)) return null;

            item = new IntItem(">" + (negative ? "-" : "") + tokens.next() + decimalPart(), true);
            item.setOrigin(new Substring(initial.substring.start, tokens.currentNoIgnore().substring.start,
                                         initial.getSubstring().getSuperstring())); // XXX: Unsafe end?
            return item;
        } finally {
            if (item == null) {
                tokens.setPosition(position);
            }
        }
    }
Returns the specified term weight, or -1 if there is no weight suffix
container-search/src/main/java/com/yahoo/prelude/query/parser/StructuredParser.java