public float getOrderness() {
        if (pairs == 0) return 1f;
        return 1-(float)outOfOrder/pairs;
    }
Returns how well the order of the terms agreed in segments: <code>1-outOfOrder/pairs</code>
searchlib/src/main/java/com/yahoo/searchlib/ranking/features/fieldmatch/FieldMatchMetrics.java